home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Periodicals / General / Mac Script / mac-script-94-05.txt < prev   
Text File  |  1994-06-09  |  641KB  |  15,094 lines

  1. Subject: MacScripting digest
  2. Date: Mon, 06 Jun 94 21:57:57 -0500
  3. From: Fred Terry <pfterry@lks.csi.com>
  4.  
  5.  
  6. This is the MacScripting digest for May 1994.
  7.  
  8.  
  9. =========================================================================
  10. Date:         Sun, 1 May 1994 20:15:40 -0700
  11. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  14. Subject:      Re: MS: MIME II
  15.  
  16. >Ooops.  Your right, the FULLHDR option is on a list-by-list basis, not
  17. >server wide, so the right syntax is indeed:
  18.  
  19.  
  20. Fred and or Andy...
  21.  
  22.  
  23. OK, having to make this change has caused me to subscribe to the list in
  24. the form by which my Internet host currently identifies me.  I also did a
  25. REVIEW...it appears that the old entry is this one (names before and after
  26. for context):
  27.  
  28. HXW103@PSUVM.PSU.EDU                     Hao Wang
  29. JWBAXTER@PT.OLYMPUS.NET                  John Baxter
  30. macscript@PTOLEMY.ARC.NASA.GOV           MacScrpt gateway
  31.  
  32.  
  33. The new one is:
  34.  
  35. sheaj@OHSU.EDU                           Jackson Shea
  36. jwbaxter@OLYMPUS.NET                     John W. Baxter
  37. Jordan_Pallack@ONENET-BBS.ORG            Jordan Pallack
  38.  
  39.  
  40. At your leisure, please remove the JWBAXTER@PT.OLYMPUS.NET entry...this is
  41. not a priority matter.  Many thanks!
  42.  
  43. It seems to me our group is smarter than the Internet average...I only
  44. counted 10 people named "your name" (actually, one of those is "<your
  45. name>"), out of 662.
  46.  
  47.    --John
  48.  
  49. --
  50. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  51. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  52. =========================================================================
  53. Date:         Sun, 1 May 1994 23:49:52 -0400
  54. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  55. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  56. From:         Daniel J Keldsen <djk@WORLD.STD.COM>
  57. Subject:      problems using installed OSAXen
  58.  
  59. Specifically, I've had problems using various people's implementations of
  60. "Choose folders" and "Choose files."  I realized that perhaps the OSAX
  61. that have the same command name might be conflicting, so I removed one of
  62. the beasts and tried the supplied example to (still) no avail. I'd
  63. thought you just had to lob the stuff into the Scripting Additions
  64. folder. Am I wrong?
  65.  
  66. Also, anybody gotten the "Display text" addition to work? For that
  67. matter, anybody have a better handle on French than I do (rusty 3 years
  68. of High School French ain't handlin' it) to translate the supplied docs?
  69.  
  70. Thanks folks. It's been a rewarding experience to listen to you
  71. Experienced Scripters...
  72.  
  73. .................................................................
  74. "Umbernay oneay, ouyay avehay the ridgebay..." - pig-latin ST:TNG
  75. dan keldsen - djk@world.std.com
  76. .................................................................
  77. =========================================================================
  78. Date:         Sun, 1 May 1994 21:49:00 PDT
  79. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  80. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  81. From:         Mark Alldritt <alldritt@WIMSEY.COM>
  82. Subject:      Re: parsing text in AppleScripts
  83.  
  84. >I have a question that doesn't appear to be addressed in the FAQ or
  85. >Tao of AppleScript.  It's fairly clear from the language description
  86. >that AS is not intended to be a text-parsing language, but I'd like
  87. >to find some basic string manipulation beyond that offered in the
  88. >String Commands osax that comes with AppleScript.  The only thing
  89. >I've found that comes close were some of the Rinaldi externals
  90. >in the XCMD osax package, but the functionality is not exactly
  91. >what I'm looking for.
  92. >
  93. >Specifically, I'd like something that would let me manipulate
  94. >strings as in HyperCard -- for example:
  95. >
  96. > get char (offset "[" of str) to (offset "]" of str) of str
  97. >
  98. >which would mimic the HyperTalk
  99. >
  100. > get char (offset("[",str)) to (offset("]",str)) of str
  101. >
  102. >which returns "[text]", say, if str is "Some [text] here".
  103.  
  104. ScriptTools 1.3 offers a regular expression OSAX which should be able to
  105. do what you are looking for.  For instance:
  106.  
  107. property myPattern : compile regular expression ".*([.*]).*"
  108.  
  109. set theMatch to match regular expression myPattern to str
  110. match 1 of theMatch
  111.  
  112. Script Tools is available from Info-Mac and the AppleScript archive
  113. (gaea.kgs.ukans.edu).
  114.  
  115. -Mark
  116. =========================================================================
  117. Date:         Mon, 2 May 1994 02:50:02 -0400
  118. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  119. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  120. From:         Tom Pollard <pollard@CHEM.COLUMBIA.EDU>
  121. Subject:      QuicKeys and AppleScript
  122.  
  123. Jon Pugh recently responded to a question about nonscriptable dialogs:
  124. >
  125. > As soon as I mailed that I realized that the answer I know of is QuicKeys
  126. > 3.0 which can be called from AppleScript.  It's fairly easy too.  Record
  127. > your QK script which pushes the buttons from the Script Editor and call
  128. > that from your more complete and functional script.
  129.  
  130. (People haven't talked much about mixing QK and AS scripts, so I thought
  131. I'd elaborate on Jon's answer.  Apologies if this unneccesary.)
  132.  
  133. It sounds like he's suggesting making a QK3.0 shortcut and then calling
  134. that from the AS script.  That works fine, but you can also write QK
  135. scripts on the fly within AS and send them to QK using its DoScript
  136. event.  The (perhaps minor) advantage is that there's only one script
  137. when you're done.
  138.  
  139. To generate the QK script for use with DoScript, you have to write it in
  140. QuicKeys' own scripting language.  Since QK3.0 is AppleScript-
  141. recordable, you can generate the QK script by choosing QuicKeys as your
  142. AS dialect and recording the macro from the AppleScript Editor.  A
  143. downside to this, however, is that QK will record many actions such as
  144. menu selections and button presses as mouse motions, which are ok, but
  145. hard to decipher or maintain later.
  146.  
  147. It's not much harder, but much more satisfactory, to use QK's own
  148. scripting commands directly.  Here's an example from a AS applet that
  149. I wrote to control the console i/o dialog of a hastily ported Unix app
  150. ('diff').  This snippet starts up the 'diff' app, writes a
  151. command line into the box, hits a radio button to select file output,
  152. specifies the output file in the standard file i/o dialog, punches 'OK',
  153. and hits a return to exit the program...  ('B's are option-returns)
  154.  
  155. set outName to (file of pathParts of outFile)
  156. try
  157.    --- tell QuicKeys to start up diff and type in the command-line arguments
  158.    --- ... and to specify our output file using the file i/o dialog
  159.    tell application "QuicKeys* Toolbox" to B
  160.       Do Script ("File \"" & appFile & "\"" & return & B
  161.          "Wait Application \"" & appName & "\" running " & return & B
  162.          "Text \"" & (cmdline as string) & "\"" & return & B
  163.          "Button \"file\"" & return & B
  164.          "Text \"" & (outName as string) & "\"" & return & B
  165.          "Button \"Save\"" & return & B
  166.          "Button \"OK\"" & return & B
  167.          "Keystroke %36" as string)
  168.    set tempOut to myDir & ":" & (file of pathParts of outFile)
  169.    relocate (alias tempOut) to (alias (folder of pathParts of outFile))
  170. on error
  171. end try
  172.  
  173. As an aside, the 'diff' script that the above snippet comes from is
  174. actually pretty useful.  I use it as an applet on which you can drop
  175. pairs of files and/or folders and have them 'diff'ed.  There's a custom
  176. dialog window that let's you verify or change the input and output
  177. files, select command line options, and refer to the help file, if
  178. neccesary.  Last time I checked, none of the other 2 or 3
  179. file-comparison apps were drop-launchable in this way.  I've got the
  180. same interface grafted onto a port of 'patch', as well, but haven't used
  181. it as much.
  182.  
  183. I've been wanting to submit this script to gaea, but there's one
  184. situation that it still barfs on, which is when the pathname of an input
  185. or output file contains an apostrophe.  Right now it uses apostrohes to
  186. quote the file names to be written on the command line.  It would be
  187. better to escape special characters ['" ] in the Mac file names with
  188. slashes, but AS 1.0 seems to be allergic to single slashes and always
  189. inserts an escaped slash '\\' instead.  Very annoying.  Suggestions
  190. would be welcome.
  191.  
  192. Cheers,
  193.  
  194. Tom
  195.  
  196. -------------------------------------------------------------------------------
  197. W. Thomas Pollard                       Department of Chemistry
  198. pollard@cucbs.chem.columbia.edu         Columbia University
  199. -------------------------------------------------------------------------------
  200. =========================================================================
  201. Date:         Mon, 2 May 1994 00:13:47 -0700
  202. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  203. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  204. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  205. Subject:      Re: problems using installed OSAXen
  206.  
  207. > I'd thought you just had to lob the stuff into the Scripting Additions
  208. > folder. Am I wrong?
  209.  
  210. I believe you need to restart your Mac, too, since it is at startup time
  211. that the event handlers implied by the existing osaxen are installed.
  212. There might be magic going on that avoids that need.  [I always restart
  213. after adjusting the Scripting Additions folder, so I'm not sure it's
  214. necessary.]
  215.  
  216. -- John
  217. This is a test of an equal sign: =
  218.  
  219. --
  220. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  221. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  222. =========================================================================
  223. Date:         Mon, 2 May 1994 00:29:36 -0700
  224. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  225. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  226. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  227. Subject:      Re: QuicKeys and AppleScript
  228.  
  229. >It would be
  230. >better to escape special characters ['" ] in the Mac file names with
  231. >slashes, but AS 1.0 seems to be allergic to single slashes and always
  232. >inserts an escaped slash '\\' instead.  Very annoying.  Suggestions
  233. >would be welcome.
  234.  
  235. Hmmm...I was going to suggest using AppleScript 1.1.  However, AS 1.1 when
  236. compiling this:
  237.  
  238. display dialog "\"Testing\'"
  239.  
  240. complains about an unknown token, selecting the '
  241.  
  242. Best I can come up with right now is based on this, which itself may be
  243. AppleScript 1.1:
  244.  
  245. display dialog (ASCII character 39) & "Testing" & (ASCII character 39)
  246.  
  247. which displays 'Testing'
  248.  
  249.  
  250. property quote: ASCII character 39
  251.  
  252. display dialog quote & "Testing" & quote
  253.  
  254. might be nicer.
  255.  
  256. --
  257. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  258. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  259. =========================================================================
  260. Date:         Mon, 2 May 1994 07:44:28 -0400
  261. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  262. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  263. From:         Frank Lowney <flowney@MAIL.GAC.PEACHNET.EDU>
  264. Subject:      Re: Mail document to person as Eudora Attachment
  265.  
  266. >>        Could not run the script "Mail to Peter" because the
  267. >>        script's data format  is too new for the scripting format
  268. >>        to read it.
  269. >>        -1759
  270. >>
  271. >>What does this mean??
  272. >
  273. >I think it is apple's way of telling you that someone else has received a
  274. >bundled copy or spent the dollars for Applescript 1.1 and now it is your
  275. >turn to do the same :-(
  276. >
  277. >There was a message that went through with an improved salt-free version of
  278. >the script.  I suspect that just copying that text would be a better way of
  279. >doing it.
  280. >
  281. >What is the concensus people?  Was my posting the applet a mistake?  Should
  282. >I in the future cut and paste the script?  Is this is the FAQ which I
  283. >probably haven't read?  Can anyone see a good reason to post the applet?
  284. >
  285. >Craig
  286. >
  287. For myself, I found the posting and, especially, the resulting
  288. discussion/revision most instructive.  I find that real-world examples are
  289. an excellent supplement to the more contrived and abstract discussions
  290. typical of cutting edge discussions.
  291.  
  292. *********************************************************************
  293. Dr. Frank Lowney, Director, Regional Teacher Education Center
  294.                   System Administrator, The GC EduNET Project
  295. CBX 034, School of Education
  296. Georgia College, Milledgeville, GA 31061-0490
  297. Voice: (912) 453-5121
  298. via GC EduNET, Georgia's Statewide K-12 Education Network, telnet to:
  299.         gcedunet.peachnet.edu
  300. *********************************************************************
  301. =========================================================================
  302. Date:         Mon, 2 May 1994 09:19:47 -0500
  303. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  304. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  305. From:         Fred Terry <pfterry@LKS.CSI.COM>
  306. Subject:      Frontier 3.02 updaters
  307.  
  308. I have posted the Frontier 3.02 upgraders in
  309.  
  310. ftp://frontier/FromUserland/3.0.1to3.0.2Upgrader.hqx
  311. ftp://frontier/FromUserland/3.0to3.0.2Upgrader.hqx
  312. ftp://frontier/FromUserland/DocServerSourceText3.0.2.hqx
  313.  
  314. If you have any problems getting them, let me know. What follows is the
  315. contents of the readme file explaining the differences.
  316.  
  317.  
  318. Frontier 3.0.2 Upgraders
  319. - ------------------------
  320.  
  321. Frontier 3.0.2 is a bugfix release, correcting problems reported in
  322. Frontier 3.0 and 3.0.1. It also expands support of array operations, so
  323. upgrading is recommended for all users. A complete list of changes is in
  324. the next section.
  325.  
  326. There are two upgrade packages in Lib 8. If you have Frontier version 3.0,
  327. download UP3032.SEA, the 3.0 => 3.0.2 Upgrader. If you have Frontier
  328. version 3.0.1, download UP3132.SEA, the 3.0.1 => 3.0.2 Upgrader. If you
  329. have Frontier 2.x and would like to upgrade to 3.0.2, send an email message
  330. to Carolyn Franz at 76703,4047 for ordering info, or read UPGRAD.TXT in
  331. this library.
  332.  
  333.  
  334. Changes in 3.0.2
  335. - ----------------
  336.  
  337. Array operations
  338. *  Multi-level array operations are now fully supported. Array references
  339. can specify items within nested lists, records, strings and binary values,
  340. to a maximum depth of eight levels.
  341. *  The nameOf verb, and the increment and decrement operators can be used
  342. with array expressions.
  343.  
  344. file.copy verb
  345. *  When copying a folder hierarchy, newly-created folders retain the
  346. attributes of the originals, including the creation and modification dates,
  347. label, size, view, and custom icon. The attributes of preexisting
  348. destination folders are not changed. (Note: the first time a newly-copied
  349. folder is opened in the Finder, some attributes may not be recognized.)
  350. *  file.copy works properly when copying into an AppleShare "drop box"
  351. folder, a folder for which the user does not have "See Files" privileges.
  352.  
  353. with statement
  354. *  Using an object in a with statement no longer affects object
  355. specifications made in other, external scripts that are called within the
  356. statement body. Local scripts do inherit the specified container, as
  357. before.
  358. *  The isolation of external scripts from the context of a with statement
  359. applies to scripts that are run using the evaluate verb. The evaluate verb
  360. is used by the Run Selection command.
  361.  
  362. fileloop statement
  363. *  Fixed bug that caused the depth specification of a fileloop statement to
  364. be ignored when the empty string was used to loop though all volumes.
  365. fileloop (f in "", infinity) will visit every file on every disk.
  366. *  If the folder path  in a fileloop statement specifies a file, a "folder
  367. not found" error results. In the past, the loop would simply do nothing.
  368.  
  369. file.newAlias verb
  370. *  An alias file created by file.newAlias retains the label of the original
  371. item.
  372.  
  373. file.reconcileFolder verb
  374. *  The original and clone parameters are validated as specifying existing
  375. folders. Also, fixed bug that caused folder names to be merged with file
  376. names when the case used by the parameters differed from that used in the
  377. file system.
  378.  
  379. dialog.loadFromFile verb
  380. *  dialog.loadFromFile is used by dialog.runFromFile to copy a dialog's
  381. resources into Frontier.root. The verb now handles CNTL, PICT and other
  382. resource types, and resource IDs of 25000 or greater are recognized. This
  383. provides for dialogs containing multiple custom controls, pictures, menus
  384. or other items.
  385.  
  386. dialog.getValue verb
  387. *  dialog.getValue returns the title of button controls, mirroring the
  388. action of dialog.setValue. It used to return the number zero.
  389.  
  390. setEventTimeout verb
  391. *  setEventTimeout works again; it was broken in 3.0.
  392.  
  393. speaker.sound verb
  394. *  The speaker.sound verb has a new implementation that improves
  395. compatibility and works on all Macintoshes.
  396.  
  397. Other Language fixes and changes
  398. *  Improved translation of object specifier values to text. All application
  399. tables that are loaded into memory are scanned for matching terminology.
  400. (Tip:  any table can be pre-loaded by referencing it in a startup script,
  401. ensuring that it will be available for objspec translations.) This change
  402. makes the results of one-liner scripts much more intelligible.
  403. *  Complex expressions involving double, binary, list and record types are
  404. less likely to generate "expression is too big" errors.
  405. *  The decrement operator works on character values.
  406. *  Single/double-to-long coercions are range-checked.
  407. *  Fixed erroneous syntax error when a statement containing an escaped
  408. quote character (\")in a string was followed by a comment.
  409.  
  410. Script Debugger
  411. *  When a script being debugged encounters an error, most of the debugger's
  412. buttons are dimmed. The Kill and Lookup buttons remain enabled.
  413. *  When the component manager isn't available, UserTalk scripts show
  414. "UserTalk" as the current language, not "<unavailable>".
  415.  
  416. Miscellaneous
  417. *  Added support for the object specifier clipboards created by Finder
  418. 7.1.3. Copying an item on the desktop and pasting into Frontier yields an
  419. object specification for that item.
  420. *  If Frontier receives an "open document" Apple event for a file that it
  421. already has open, the main window for that file is brought to the front.
  422. *  Fixed bug that caused DocServer's Jump To command to crash if the
  423. Component Manager wasn't present,
  424. *  Worked around problem that led to memory leakage with some video boards
  425. in 16/24-bit display mode.
  426. *  Fixed a memory leak when saving tables that contain filespec or compiled
  427. code items.
  428. *  Made a few internal changes to improve handling of low-memory conditions.
  429.  
  430.  
  431.  
  432.  
  433. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  434. Fred Terry  Cadence Design Systems  pfterry@lks.csi.com  +1 913 841 1283
  435. =========================================================================
  436. Date:         Mon, 2 May 1994 09:36:52 -0600
  437. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  438. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  439. From:         "Desmond K. Mullen" <mulle009@MAROON.TC.UMN.EDU>
  440. Subject:      Re: Enclosed App appearing on hard drive
  441.  
  442. I too was surprised. I don't think it's a problem sending an app - though I
  443. agree sending a .sit or .sea is probably better.
  444.  
  445. We should all take a moment and think about what's appropriate for our own
  446. setups in terms of the security of our machines. I think there's mention in
  447. the Eudora documentation about possibly disallowing auto-decoding of
  448. binhexes. You can also tell the listserv to not send you any enclosures.
  449.  
  450. Let's keep in mind that there are some people out there with bad intent.
  451.  
  452. Desmond K. Mullen - University of Minnesota, Office of Admissions
  453. mulle009@maroon.tc.umn.edu - 612/625-0824
  454. =========================================================================
  455. Date:         Mon, 2 May 1994 07:49:49 -0700
  456. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  457. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  458. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  459. Subject:      Re: Enclosed App appearing on hard drive
  460.  
  461. >I too was surprised. I don't think it's a problem sending an app - though I
  462. >agree sending a .sit or .sea is probably better.
  463.  
  464. Keep in mind, too, that a .sea file is an application.  So unless the
  465. anti-virus stuff treats those specially, they'll be warned about.
  466.  
  467.    --John
  468.  
  469. --
  470. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  471. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  472. =========================================================================
  473. Date:         Mon, 2 May 1994 09:08:00 -0700
  474. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  475. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  476. From:         Steve Michel <michel@NETCOM.COM>
  477. Subject:      Re: problems using installed OSAXen
  478.  
  479. >> I'd thought you just had to lob the stuff into the Scripting Additions
  480. >> folder. Am I wrong?
  481. >
  482. >I believe you need to restart your Mac, too, since it is at startup time
  483. >that the event handlers implied by the existing osaxen are installed.
  484. >There might be magic going on that avoids that need.  [I always restart
  485. >after adjusting the Scripting Additions folder, so I'm not sure it's
  486. >necessary.]
  487. >
  488.  
  489. I heard that the Scripting Additions folder is checked each time a script
  490. is compiled, provided the folder is dirty. So, if you add an addition, with
  491. the Script Editor open, just dirty the script (type a space & then
  492. recompile), and the new Addition will be seen.
  493. =========================================================================
  494. Date:         Mon, 2 May 1994 11:13:40 -0600
  495. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  496. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  497. From:         Tom Donovan <donovan@COVIS.NWU.EDU>
  498. Subject:      Re: Enclosed App appearing on hard drive
  499.  
  500. >I too was surprised. I don't think it's a problem sending an app - though I
  501. >agree sending a .sit or .sea is probably better.
  502. >
  503. >We should all take a moment and think about what's appropriate for our own
  504. >setups in terms of the security of our machines. I think there's mention in
  505. >the Eudora documentation about possibly disallowing auto-decoding of
  506. >binhexes. You can also tell the listserv to not send you any enclosures.
  507. >
  508. >Let's keep in mind that there are some people out there with bad intent.
  509. >
  510. >Desmond K. Mullen - University of Minnesota, Office of Admissions
  511. >mulle009@maroon.tc.umn.edu - 612/625-0824
  512.  
  513. To take another tack, I'm not overly concerned about the security (though
  514. probably I should be), but I do think about the time involved in
  515. downloading attachments.  As someone who downloads most of his mail over a
  516. dialup connection (meaning that I pay for it) I would rather that list
  517. members offer to send a file to any who request it, rather than
  518. broadcasting it to everyone.
  519.  
  520. --Tom
  521.  
  522. PS: A point to ponder:  I seem to remember hearing about something in the
  523. US Postal code saying that it's illegal for a recipient to be charged for
  524. unsolicited merchandise sent through the mail.
  525.  
  526. Another of the many issues to be addressed as part of life on the infobahn!
  527.  
  528. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  529. Tom Donovan           "The city is a place where a small boy, as he walks
  530. System Administrator   through it, may see something that will tell him what
  531. CoVis Project          he wants to do his whole life."
  532. Northwestern Univ.
  533.                                                     --Louis I. Kahn
  534. E-mail: donovan@covis.nwu.edu
  535. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  536. =========================================================================
  537. Date:         Mon, 2 May 1994 11:17:07 -0500
  538. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  539. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  540. From:         Fred Terry <pfterry@LKS.CSI.COM>
  541. Subject:      Re: Frontier 3.02 updaters
  542. In-Reply-To:  Your message of "Mon, 02 May 94 09:14:29 -0900"
  543.  
  544. Oooops. My URL's were wrong. Here are the corrected ones.
  545.  
  546. I have posted the Frontier 3.02 upgraders in
  547.  
  548. ftp://gaea.kgs.ukans.edu/frontier/FromUserland/3.0.1to3.0.2Upgrader.hqx
  549. ftp://gaea.kgs.ukans.edu/frontier/FromUserland/3.0to3.0.2Upgrader.hqx
  550. ftp://gaea.kgs.ukans.edu/frontier/FromUserland/DocServerSourceText3.0.2.hqx
  551.  
  552.  
  553. Sorry bout that.
  554.  
  555. pf
  556. =========================================================================
  557. Date:         Mon, 2 May 1994 12:27:04 -0700
  558. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  559. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  560. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  561. Subject:      Re: Enclosed App appearing on hard drive
  562.  
  563. >PS: A point to ponder:  I seem to remember hearing about something in the
  564. >US Postal code saying that it's illegal for a recipient to be charged for
  565. >unsolicited merchandise sent through the mail.
  566.  
  567. Not only that, you don't have to return it, either.  Unsolicited
  568. merchandise sent through the mail is a gift.  [My recollection of Postal
  569. Regs which may be remembered wrong or out of date.]
  570.  
  571. --
  572. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  573. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  574. =========================================================================
  575. Date:         Mon, 2 May 1994 18:09:12 -0400
  576. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  577. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  578. From:         Daniel J Keldsen <djk@WORLD.STD.COM>
  579. Subject:      Re: problems using installed OSAXen
  580. In-Reply-To:  <199405020713.AA17077@world.std.com>
  581.  
  582. On Mon, 2 May 1994, John W. Baxter wrote:
  583.  
  584. > > I'd thought you just had to lob the stuff into the Scripting Additions
  585. > > folder. Am I wrong?
  586. >
  587. > I believe you need to restart your Mac, too, since it is at startup time
  588. > that the event handlers implied by the existing osaxen are installed.
  589. > There might be magic going on that avoids that need.  [I always restart
  590. > after adjusting the Scripting Additions folder, so I'm not sure it's
  591. > necessary.]
  592. >
  593. > -- John
  594.  
  595. I think I realized my mistake. I have most definitely rebooting whenever
  596. I install new Additions, but it seems that somehow I ended up with TWO
  597. SCripting Additions folders, one loose in the System Folder, the other in
  598. the Extensions Folder. I moved everything to the Extensions:Scripting
  599. Additions folder, and everything is *MOSTLY* kosher.
  600.  
  601. Some of the examples that come with certain scripting additions (I'm
  602. being just a tad vague, eh?) contain direct references to apple events
  603. (anyhow they're enclosed in <<slardibardfast>>), that seem to barf every
  604. time. I'll compile a list of problems and see if y'all can help out on
  605. that one.
  606.  
  607. This AppleScripting sure is fun stuff! I kind of miss the brevity of
  608. C/C++ in the 'pseudo-English' code though...
  609.  
  610. Adios!
  611.  
  612. dan keldsen - djk@world.std.com
  613. =========================================================================
  614. Date:         Mon, 2 May 1994 18:54:25 -0400
  615. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  616. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  617. From:         "George A. Piotrowski Jr." <gap@ASTRO.OCIS.TEMPLE.EDU>
  618. Subject:      Applescripting the Chooser
  619.  
  620. I have been experimenting with Applescript recently and I was wondering if
  621. there is a way to select a printer whether thru the chooser or not by using
  622. Applescript?  I want to be able to setup a startup script to set certain
  623. options on a bunch of macs in a lab situation, and I would like all of the
  624. macs in a classroom to bootup selected to the deskwriter that is setup in
  625. the classroom, and also maybe cleanup the hard drive a little.  Does anyone
  626. know a way to do this or maybe know if there is a program out there in the
  627. archives that can let you set the selected printer at startup.
  628.  
  629. Thanks in advance,
  630.  
  631.  
  632.  ___________________________________________________________________
  633. |                                                                   |
  634. | George A. Piotrowski, Coordinator       gap@astro.ocis.temple.edu |
  635. | Educational Computing Center               Applelink: PIOTROWSKI1 |
  636. | Temple University                       OH BOY! - Sam Beckett, QL |
  637. |___________________________________________________________________|
  638. =========================================================================
  639. Date:         Tue, 3 May 1994 13:22:30 +1200
  640. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  641. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  642. From:         Michael Norris <michael.norris@STONEBOW.OTAGO.AC.NZ>
  643. Subject:      Stop Eudora notification...
  644.  
  645. Hi, please excuse my novice dabblings into AppleScript.
  646.  
  647. In Eudora there is a property 'notify' which is a boolean. How do I set
  648. that to false (set notify to false doesn't work).
  649.  
  650. Any help?
  651.  
  652. Cheers,
  653.  
  654. Michael Norris,
  655. CAL Consultant,
  656. University of Otago,
  657. PO Box 56,
  658. Dunedin,
  659. New Zealand.
  660. ---------------------
  661. Ph:(03) 479-7705
  662. E-Mail: michael.norris@stonebow.otago.ac.nz
  663. =========================================================================
  664. Date:         Tue, 3 May 1994 13:42:06 +1200
  665. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  666. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  667. From:         Michael Norris <michael.norris@STONEBOW.OTAGO.AC.NZ>
  668. Subject:      Re: Applescripting the Chooser
  669.  
  670. >I have been experimenting with Applescript recently and I was wondering if
  671. >there is a way to select a printer whether thru the chooser or not by using
  672. >Applescript?
  673.  
  674. You could do worse than use Hypercard with the XFCNs & XCMDs "DeviceList",
  675. "CurrPrinter" & "ChooseDevice" from Fred Rinaldi. But then that's probably
  676. not what you want. The Finder Scripting Toolkit doesn't let you do that.
  677.  
  678. Michael Norris,
  679. CAL Consultant,
  680. University of Otago,
  681. PO Box 56,
  682. Dunedin,
  683. New Zealand.
  684. ---------------------
  685. Ph:(03) 479-7705
  686. E-Mail: michael.norris@stonebow.otago.ac.nz
  687. =========================================================================
  688. Date:         Mon, 2 May 1994 20:48:27 -0500
  689. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  690. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  691. From:         Fred Terry <pfterry@LKS.CSI.COM>
  692. Subject:      Re: Applescripting the Chooser
  693. In-Reply-To:  Your message of "Mon, 02 May 94 18:54:25 EDT"
  694.  
  695. George,
  696.  
  697. >I have been experimenting with Applescript recently and I was wondering if
  698. >there is a way to select a printer whether thru the chooser or not by using
  699. >Applescript?  I want to be able to setup a startup script to set certain
  700. >options on a bunch of macs in a lab situation, and I would like all of the
  701. >macs in a classroom to bootup selected to the deskwriter that is setup in
  702. >the classroom, and also maybe cleanup the hard drive a little.  Does anyone
  703. >know a way to do this or maybe know if there is a program out there in the
  704. >archives that can let you set the selected printer at startup.
  705.  
  706. Get a copy of GTQScriptLibrary. You'll find it in
  707.  
  708. ftp://gaea.kgs.ukans.edu/applescript/osaxen/GTQScriptingLibrary1.1.hqx
  709.  
  710. It has a Set Printer To scripting addition in it that should work.
  711.  
  712. pf
  713.  
  714.  
  715.  
  716. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  717. Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
  718. =========================================================================
  719. Date:         Mon, 2 May 1994 21:41:25 -0700
  720. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  721. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  722. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  723. Subject:      Re: Applescripting the Chooser
  724.  
  725. >>I have been experimenting with Applescript recently and I was wondering if
  726. >>there is a way to select a printer whether thru the chooser or not by using
  727. >>Applescript?
  728. >
  729. >You could do worse than use Hypercard with the XFCNs & XCMDs "DeviceList",
  730. >"CurrPrinter" & "ChooseDevice" from Fred Rinaldi. But then that's probably
  731. >not what you want. The Finder Scripting Toolkit doesn't let you do that.
  732.  
  733. The Rinaldi XCMDs you speak of have been made part of the XCMDosax,
  734. available (under something like that name) on the gaea server.
  735.  
  736. Note that choosing a printer is becoming more complex (software-wise) all
  737. the time...several new wrinkles were added in LaserWriter 8.1 and related
  738. Choosers...I don't know whether the ChooseDevice XCMD works with the
  739. latest.
  740.  
  741. And choosing printers will change again, drastically, with QuickDraw GX,
  742. and the desktop printer metaphore.
  743.  
  744.    --John (typing by figurative candlelight through the power outage)
  745.  
  746. --
  747. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  748. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  749. =========================================================================
  750. Date:         Mon, 2 May 1994 23:12:17 -0700
  751. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  752. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  753. From:         Jon Pugh <jonpugh@NETCOM.COM>
  754. Subject:      Submitting Scripts (and one for the Finder)
  755.  
  756. Personally, I think that submitted scripts should be done in text so that
  757. they can be archived with the discussion.  That way we can also see the
  758. modification history of such things as Mail To Peter.  Of course, the most
  759. sensible reason is that some people still use 1.0 (money is the only reason
  760. to continue using 1.0 and it's not that good of a reason).
  761.  
  762. In that vein, here's a scriptable Finder script which works well from OSA
  763. Menu 1.0.1b3 or later.  One of the bugs Leonard fixed made this script
  764. useless.  Now it works!
  765.  
  766. This saves the state of your open windows when you hold the option key down
  767. and sets the windows to that state when you don't.  You could easily make
  768. this save the window positions too.  I'm not the sort to move my windows
  769. around though, so I didn't make it save that.
  770.  
  771. Jon
  772.  
  773. >------------------------------------------------------------------------<
  774.  
  775. property windowState : {}
  776.  
  777. tell application "Finder"
  778.         if (keys pressed) contains "command" then
  779.                 -- save open window list
  780.                 set windowState to every window
  781.                 play sound "Cool"
  782.         else
  783.                 -- close windows which shouldn't be open
  784.                 set x to every window
  785.                 repeat with w in x
  786.                         if w is not in windowState then
  787.                                 close w
  788.                         end if
  789.                 end repeat
  790.                 -- open windows which should be open
  791.                 repeat with i from number of items of windowState to 1 by -1
  792.                         open item i of windowState
  793.                 end repeat
  794.         end if
  795. end tell
  796. =========================================================================
  797. Date:         Tue, 3 May 1994 07:20:33 EST
  798. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  799. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  800. From:         Sam McLane <Sam_McLane@COMPSERV.OCIS.TEMPLE.EDU>
  801. Subject:      Setting printer in applescript
  802.  
  803. Try the GTQ library of coomands:
  804.  
  805. set printer to: chooses the specified device type
  806.     set printer to  string  -- device type name
  807.         [named  string]  -- name of device
  808.         [using  printer port/modem port]  -- which serial port to use (valid 
  809. for
  810.                             serial devices only)
  811.         [zone  string]  -- zone where device is
  812.  
  813.  
  814. -Sam
  815. =========================================================================
  816. Date:         Tue, 3 May 1994 07:23:09 EST
  817. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  818. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  819. From:         Sam McLane <Sam_McLane@COMPSERV.OCIS.TEMPLE.EDU>
  820. Subject:      Re: Setting printer in applescript
  821.  
  822. I should have added they are available on newton.uiowa.edu
  823.  
  824. -Sam
  825. sam.mclane@compserv.ocis.temple.edu
  826. =========================================================================
  827. Date:         Tue, 3 May 1994 04:25:55 PDT
  828. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  829. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  830. From:         network_manager@ALDUS.COM
  831. Organization: Aldus Corporation, Seattle, WA
  832. Subject:      NDN:Setting printer in applescript
  833.  
  834. Your mail to the Microsoft Mail Server could not be fully
  835. delivered!   No Valid Addresses!   It has been deleted.
  836.  
  837. Error List:
  838.   Bad 'To:' Address: david.rogers@MSM-Inter
  839. =========================================================================
  840. Date:         Tue, 3 May 1994 09:43:26 LCL
  841. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  842. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  843. From:         Rick Zeman <rick.zeman@HIS.COM>
  844. Subject:      Enclosed Applets
  845.  
  846. |Subject: Re: Mail document to person as Eudora Attachment
  847. |
  848. |>        Could not run the script "Mail to Peter" because the
  849. |>        script's data format  is too new for the scripting format
  850. |>        to read it.
  851. |>        -1759
  852. |>
  853. |>What does this mean??
  854. |
  855. |I think it is apple's way of telling you that someone else has received a
  856. |bundled copy or spent the dollars for Applescript 1.1 and now it is your
  857. |turn to do the same :-(
  858. |
  859. |There was a message that went through with an improved salt-free version of
  860. |the script.  I suspect that just copying that text would be a better way of
  861. |doing it.
  862. |
  863. |What is the concensus people?  Was my posting the applet a mistake?  Should
  864. |I in the future cut and paste the script?  Is this is the FAQ which I
  865. |probably haven't read?  Can anyone see a good reason to post the applet?
  866.  
  867. Sure.  I, not being a guru, find 'real life' examples to be most instructive.
  868. However, I'd like to see them in a Stuffit wrapper:  that way (due to the way I
  869. get the digest) SITcomm won't say "Hey, a Binhex file!", extract it--and delete
  870. the surrounding text (it's the way I've got it set up and I don't want to
  871. change it).
  872.  
  873. _____________________________________________________________________________
  874. Rick Zeman                                "Wer nie sein Brot mit Traenen ass,
  875. rzeman@his.com                               Wer nie die kummervollen Naechte
  876. Fidonet: 1:109/70.943                          Auf seinem Bette weinend sass,
  877.                               Der kennt Euch nicht, Ihr himmlishcen Maechte."
  878.                                             -- Goethe, "Wilhelm Meister"
  879. =========================================================================
  880. Date:         Tue, 3 May 1994 09:19:04 -0500
  881. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  882. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  883. From:         Fred Terry <pfterry@LKS.CSI.COM>
  884. Subject:      Re: Enclosed Applets
  885. In-Reply-To:  Your message of "Tue, 03 May 94 09:43:26 -1100"
  886.  
  887. Rick Zeman comments on an earlier message....
  888. >|There was a message that went through with an improved salt-free version of
  889. >|the script.  I suspect that just copying that text would be a better way of
  890. >|doing it.
  891. >|
  892. >|What is the concensus people?  Was my posting the applet a mistake?  Should
  893. >|I in the future cut and paste the script?  Is this is the FAQ which I
  894. >|probably haven't read?  Can anyone see a good reason to post the applet?
  895. >
  896. >Sure.  I, not being a guru, find 'real life' examples to be most instructive.
  897. >However, I'd like to see them in a Stuffit wrapper:  that way (due to the way
  898. >I
  899. >get the digest) SITcomm won't say "Hey, a Binhex file!", extract it--and delet
  900. >e
  901. >the surrounding text (it's the way I've got it set up and I don't want to
  902. >change it).
  903.  
  904. This sorta argues against being able to comment on/discuss the scripts that
  905. Jon Pugh referred to. The usual standards for mailing lists and newsgroups is
  906. that binaries aren't distributed.
  907.  
  908. Why not work this way: for scripts that you are seeking help with or comments
  909. on, post it into the list as text. If you want to distribute a finished
  910. script, stick it in the incoming directory on gaea.kgs.ukans.edu (or mail it
  911. to me); I'll put it in the appropriate place and announce that it's there.
  912.  
  913. pf
  914.  
  915.  
  916. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  917. Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
  918. =========================================================================
  919. Date:         Tue, 3 May 1994 07:49:35 -0800
  920. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  921. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  922. From:         T3 Backbone <willhoek@HALCYON.COM>
  923. Subject:      Re: Enclosed Applets
  924.  
  925. >...
  926. >Sure.  I, not being a guru, find 'real life' examples to be most instructive.
  927. >However, I'd like to see them in a Stuffit wrapper...
  928.  
  929. Ditto here (please), as I prefer to keep my archives as .sit files.
  930.  
  931. [|][|][|][|][|][|][|][|][|][|][|][|][|][|][|][|][|][|][|][|][|][|][|]
  932.  
  933.           I have *PROOF* that Bill Gates is The AntiChrist....
  934.                          I do Tech Support.
  935.  
  936.                                            willhoek@halcyon.com
  937. [|][|][|][|][|][|][|][|][|][|][|][|][|][|][|][|][|][|][|][|][|][|][|]
  938. =========================================================================
  939. Date:         Tue, 3 May 1994 08:48:21 -0600
  940. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  941. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  942. From:         Jordyn A Buchanan <Jordyn.Buchanan@M.CC.UTAH.EDU>
  943. Subject:      Re: Enclosed Applets
  944.  
  945. >|Subject: Re: Mail document to person as Eudora Attachment
  946.  
  947. >Sure.  I, not being a guru, find 'real life' examples to be most instructive.
  948. >However, I'd like to see them in a Stuffit wrapper:  that way (due to the way 
  949. I
  950. >get the digest) SITcomm won't say "Hey, a Binhex file!", extract it--and 
  951. delete
  952. >the surrounding text (it's the way I've got it set up and I don't want to
  953. >change it).
  954.  
  955. I may not be much of a guru either but Stuffit files will be have to be
  956. BinHexed too, if the sender want to be transmitted through most mailers.
  957. If you have SITcomm set up the way you describe above, you'll run into
  958. similar problems if any Macintosh binary file is sent to you.
  959.  
  960.  
  961. -------------------------------------------------------------------------
  962. Jordyn A. Buchanan                University of Utah
  963. jab3418@u.cc.utah.edu             ?Environmental Studies?
  964. jabuchan@cadesm15.eng.utah.edu    Hopefully Class of '95
  965. jordyn.buchanan@m.cc.utah.edu
  966.  
  967. PGP Public Key: 0xADEEC1 ED 3D 36 5A 98 CE 9D B4  4B 37 0B 9B B5 D6 F3 4B
  968.                 [keyid]                [fingerprint]
  969.  
  970. Full PGP Public key available by finger, certified version by keyserver.
  971.  
  972. Wonder what PGP is?  Just ask!
  973. =========================================================================
  974. Date:         Tue, 3 May 1994 11:34:43 -0700
  975. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  976. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  977. From:         Doug Baron <userland@NETCOM.COM>
  978. Subject:      Re: Frontier 3.02 updaters
  979. In-Reply-To:  <199405021551.IAA22179@mail.netcom.com> from "Fred Terry" at May
  980.               2, 94 09:19:47 am
  981.  
  982. >    I have posted the Frontier 3.02 upgraders in...
  983.  
  984. Thanks, Fred, for posting the upgraders. A word of warning to all: there
  985. is a change in the behavior of "with <object>" statements that can cause
  986. some scripts that used to work to generate errors. If you do a lot of
  987. object model scripting (in particular with QuarkXPress or FileMaker), and
  988. use "with" statements routinely, it may be advisable to hold off on 3.0.2
  989. and wait until a 3.0.3 update is available. In all other cases, 3.0.2 is
  990. recommended and is a worthwhile download.
  991.  
  992. Doug Baron
  993. UserLand Software      userland@netcom.com
  994. =========================================================================
  995. Date:         Tue, 3 May 1994 11:42:45 -0800
  996. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  997. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  998. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  999. Subject:      Re: Submitting Scripts (and one for the Finder)
  1000.  
  1001. >In that vein, here's a scriptable Finder script which works well from OSA
  1002. >Menu 1.0.1b3 or later.  One of the bugs Leonard fixed made this script
  1003. >useless.  Now it works!
  1004. >
  1005.         And before anyone asks - YES, I am working really hard to get 1.0.1
  1006. out with this and other fixes.  Hang in just a bit longer!!!
  1007.  
  1008. Leonard
  1009.  
  1010. -----------------------------------------------------------------------------
  1011. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  1012. Director of Advanced Technology         AppleLink:      MACgician
  1013. Aladdin Systems, Inc.                   GEnie:          MACgician
  1014. =========================================================================
  1015. Date:         Tue, 3 May 1994 16:44:46 -0400
  1016. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1017. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1018. From:         Frank Lowney <flowney@GC3.GAC.PEACHNET.EDU>
  1019. Subject:      HyperTalk & PathNames
  1020.  
  1021. We have a HyperTalk-based application that uses the Mac file hierarchy to
  1022. build menus, etc. and has to contend with new stacks appearing in new
  1023. folders without requiring a human operator to "find" the new stack so that
  1024. the STACKS global and the cd fld "paths" of cd "stacks" can be updated.
  1025.  
  1026. In automating this obnoxious process we discovered something rather weird
  1027. and I wonder if anyone else has bumped into this limitation as well.  It
  1028. seems that HyperCard does just fine with filenames that are 29 or fewer
  1029. characters in length.  Paths with filenames of 30 or more characters will
  1030. generate the "Where is..." dialog even when the path is in cd fld "paths"
  1031. of cd "stacks" and in the global "stacks"!
  1032.  
  1033. We have paths that are longer in terms of total length that work just fine.
  1034. The critical variable seems to be filename length.
  1035.  
  1036. If the Mac O/S handles a filename of up to 31 characters, why doesn't
  1037. HyperTalk do likewise.  Is this a problem with HyperTalk or are other
  1038. scripting environments affected likewise?  In short, can I beat this rap by
  1039. switching scripting languages?
  1040.  
  1041.  
  1042. *********************************************************************
  1043. Dr. Frank Lowney, Director, Regional Teacher Education Center
  1044.                   System Administrator, The GC EduNET Project
  1045. CBX 034, School of Education
  1046. Georgia College, Milledgeville, GA 31061-0490
  1047. Voice: (912) 453-5121
  1048. via GC EduNET, Georgia's Statewide K-12 Education Network, telnet to:
  1049.         gcedunet.peachnet.edu
  1050. *********************************************************************
  1051. =========================================================================
  1052. Date:         Tue, 3 May 1994 14:44:54 -0700
  1053. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1054. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1055. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  1056. Subject:      Re: HyperTalk & PathNames
  1057.  
  1058. >In automating this obnoxious process we discovered something rather weird
  1059. >and I wonder if anyone else has bumped into this limitation as well.  It
  1060. >seems that HyperCard does just fine with filenames that are 29 or fewer
  1061. >characters in length.  Paths with filenames of 30 or more characters will
  1062. >generate the "Where is..." dialog even when the path is in cd fld "paths"
  1063. >of cd "stacks" and in the global "stacks"!
  1064.  
  1065. Using HyperCard 2.2, I didn't have that problem just now with a stack with
  1066. this name:  a234567890123456789012345678901
  1067. which looks like 31 characters to me.
  1068.    --John
  1069.  
  1070. --
  1071. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  1072. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  1073. =========================================================================
  1074. Date:         Wed, 4 May 1994 09:32:00 +1000
  1075. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1076. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1077. From:         Neville Smythe <Neville.Smythe@ANU.EDU.AU>
  1078. Subject:      aete question
  1079.  
  1080. Two questions from someone who started early with AppleEvents and
  1081. AppleScript but has been a bit out of touch for a while:
  1082.  
  1083. 1. What's the best way to construct and maintain an aete resource? The
  1084. Hypercard Aete Editor stack seems to have been withdrawn from the AE
  1085. Developer folder on ETO (my last version was 1.01b1). Has there been an
  1086. update? ResEdit can't use its aete template, and Rez is too clumsy for this
  1087. purpose.
  1088.  
  1089. 2. How are Plural forms defined? The apple defined suites have them
  1090. ("documents", "columns") but I can't see where in the aete or aeut resource
  1091. they come from, and no third party dictionaries seems to have plural forms
  1092. (which of course applescript users would expect to use when writing
  1093. scripts!).
  1094.  
  1095.  
  1096. $@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?
  1097.  
  1098. Neville Smythe                         Neville.Smythe@anu.edu.au
  1099. Mathematics Department
  1100. School of Mathematical Sciences
  1101. Australian National University              Tel:   (06)-249 2709
  1102. Canberra ACT 0200 AUSTRALIA                 FAX: (61-6)-249 5549
  1103.  
  1104. $@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?
  1105. =========================================================================
  1106. Date:         Tue, 3 May 1994 18:50:23 -0700
  1107. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1108. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1109. From:         Edmund Lai <lai@APPLE.COM>
  1110. Subject:      Re: Debugging applescripts
  1111.  
  1112. >
  1113. >No, not within the Script Editor. However, you can display variables in dialog
  1114. >boxes using the display dialog scripting addition and you can sprinkle beeps
  1115. >through your scripts to get "audio traces." If you have access to the
  1116. >AppleScript beta CD, there was a scripting addition on it called Show
  1117. >Variables which would display a modal window with variables in it.
  1118. >
  1119.  
  1120. Show Variables is also available from ftp.apple.com in
  1121. /pub/lai/osax/pgmTool.sit.hqx. It is bundled together with another
  1122. osax because it shares the TMPL resources.
  1123.  
  1124. "Show Variables" illustrates some of my philosophy about what part of
  1125. AppleScript debugger should look like. Most people would not be
  1126. using most of the features in "Show Variables" and for them
  1127. display dialog is adequate for the same purpose. In the debugger
  1128. they also just want display of simple data type such as text and
  1129. number in the display of variable because that is all they want.
  1130. This is unfortunate. AppleScript is designed to handle very high level
  1131. data structure which AppleScript aware application is suppose to
  1132. manipulate for the user. However such application are still relative
  1133. rare and AppleScript is used mainly as a low level language and this
  1134. does not really show off what AppleScript is about.
  1135.  
  1136. "Show variables" is meant to show off all kind of data structure, list
  1137. and record can be broken down to their component parts and it can be
  1138. done recursively so you can look into very complex structure. When the
  1139. data is a PICT, it will be displayed as a picture, and anything that
  1140. can be coerced into a PICT is likewise displayed as a PICT. So if there
  1141. is a scriptable graphic application, you can look at your variable in
  1142. meaningful way. And anything that has a ResEdit template resource such
  1143. as 'vers' 'DITL' can be seen as the component fields. It is unfortunate
  1144. that now we have very few script and application where these can be used.
  1145.  
  1146. Actually there is another part that I have partly implemented but was
  1147. taken out. Before there was system 7 alpha and HyperCard 2.0 (i.e. in
  1148. ancient historical time), for a short while I was supposed to be
  1149. responsible for an AppleScript debugger. At that time I claimed we don't
  1150. really need much of a debugger. Look at the classic BASIC, there is
  1151. no debugger other than the BREAK statement. After the break you can
  1152. examine variables by using the PRINT statement. In some way this is more
  1153. powerful the way modern debugger let you examine variable. For example
  1154. in HyperCard debugger, it let you display the HyperTalk variables.
  1155. However often you want to know about line 127 of a variable, afterall
  1156. that is how you do a two dimension array in HyperTalk. So often I end
  1157. up copy the variable to MPW, and line using the line command to find
  1158. out line 127. So a PRINT statement in a debugger is more powerful than
  1159. point and click in languages like HyperTalk and AppleScript that
  1160. supports chunk expression. So if we are in a break point and we can
  1161. execute statements on the variables, then you can examine and change
  1162. variable in the most powerful way. To illustrate the point, I wrote an
  1163. XCMD for HyperCard 1.x that just put up a dialog box, let you type in
  1164. a HyperTalk statement and depends on the XCMD callback to evaluate the
  1165. statement. It took me only a few hours to do the whole thing and yet
  1166. it was extremely useful. I tried to pull the same trick with AppleScript.
  1167. It was working before AppleScript beta, but it crashes on return to
  1168. AppleScript on return to AppleScript. In AppleScript beta they fixed the
  1169. bug, but the execution is now in a new context and so you cannot
  1170. examine and change the current variables in the current context. I
  1171. am told this is a feature and not a bug and that is why it crashed
  1172. before but not now. But this make it useless as a debugger. So I have
  1173. to take my "type in an expression and evaluate it" feature out. This
  1174. is unfortunate, otherwise we could have a partial solution to the
  1175. debugger problem.
  1176.  
  1177.  
  1178. /* Disclaimer: All statments and opinions expressed are my own */
  1179. /* Edmund K. Lai                                               */
  1180. /* Apple Computer, MS303-3A                                    */
  1181. /* 20525 Mariani Ave,                                          */
  1182. /* Cupertino, CA 95014                                         */
  1183. /* (408)974-6272                                               */
  1184. zW@h9cOi
  1185. =========================================================================
  1186. Date:         Tue, 3 May 1994 19:22:01 -0700
  1187. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1188. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1189. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  1190. Subject:      Re: aete question
  1191.  
  1192. >Two questions from someone who started early with AppleEvents and
  1193. >AppleScript but has been a bit out of touch for a while:
  1194. >
  1195. >1. What's the best way to construct and maintain an aete resource? The
  1196. >Hypercard Aete Editor stack seems to have been withdrawn from the AE
  1197. >Developer folder on ETO (my last version was 1.01b1). Has there been an
  1198. >update? ResEdit can't use its aete template, and Rez is too clumsy for this
  1199. >purpose.
  1200.  
  1201. The latest version I know about of the 'aete' editor stack is found on the
  1202. AppleScript Developers Kit (version 1.1) CD, at
  1203.     AppleScript=81:Development Tools:Tools Goodies:
  1204.     Aete Editor Stack 1.0b3:Aete Editor b3
  1205.  
  1206. one path...broken by hand into two lines.  b3 has been around a long time.
  1207. I often use Rez, often use the stack.  ResEdit chokes on the size of most
  1208. 'aete' resources.  I am told that Resourcerer is the best, but I don't have
  1209. it.  [Coupon for $177 is in the Symantec C++ 7.0 manual, which might induce
  1210. me to buy.]
  1211.  
  1212.  
  1213. >2. How are Plural forms defined? The apple defined suites have them
  1214. >("documents", "columns") but I can't see where in the aete or aeut resource
  1215. >they come from, and no third party dictionaries seems to have plural forms
  1216. >(which of course applescript users would expect to use when writing
  1217. >scripts!).
  1218.  
  1219. I've made several attempts to derez Scriptable Text Editor's 'aete' to
  1220. remind myself how it's done.  I know it's simple.  I'll try again later.
  1221.  
  1222.    --John
  1223.  
  1224. --
  1225. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  1226. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  1227. =========================================================================
  1228. Date:         Wed, 4 May 1994 02:54:23 GMT
  1229. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1230. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1231. From:         Jay Hebert <jayh@LAISON.W8HD.ORG>
  1232. Organization: L'AISON - Beverly Hills, Michigan
  1233. Subject:      FileMaker Pro & AppleScript Bug?
  1234.  
  1235. Has anyone else had a problem with FileMaker Pro refusing to go any further in
  1236. an AppleScipt?
  1237.  
  1238. As far as I can tell, the problem appears when I use a "Do Script
  1239. <something>" command. It does the FM script, and never quite gets back to the
  1240. rest of the main script!
  1241.  
  1242. Is there a reason for this?  A work around?  Is this a bug or am I missing
  1243. something?
  1244. (BTW: Setup=Centris 610 w/ AS 1.1, FM Pro 2.1v2)
  1245.  
  1246. [code fragment follows]
  1247.         tell application "FileMaker Pro"
  1248.                 if not (Window "Login/out DB.b" Exists) then
  1249.                         Open alias "610 Internal:FileMaker Folder:Login/out 
  1250. DB.b
  1251. "
  1252.                 else
  1253.                         Show Window "Login/out DB.b"
  1254.                 end if
  1255. --The following dialog gets displayed.  Hey, what can I say?  With the
  1256. included
  1257. -- editor, this is the extent of my debugging
  1258.                 display dialog "mmm"
  1259.                 Do Script "Delete All" -- This calls a couple of subscripts, is
  1260. that
  1261. relevant?
  1262.                          -- Do I need to post the text of the subscripts too?
  1263.  
  1264. --This dialog is NOT displayed. The commands intended to be there don't
  1265. either.
  1266.                 display dialog "ahh"
  1267.         end tell
  1268.  
  1269. [end code]
  1270.  
  1271. Thanks for help, pointers, criticism of my .sig, virtual spitwads, etc.!
  1272.  
  1273. Jay Hebert
  1274. jayh@laison.w8hd.org
  1275. --
  1276. ==========================jayh@laison.w8hd.org=========================
  1277.   Metallica,||   When a man lies he murders / Some part of the world
  1278.    To Live  ||These are the pale deaths which / Men miscall their lives
  1279.      is     ||     All this I cannot bear / To witness any longer
  1280.    To Die   ||     Cannot the kingdom of salvation / Take me home
  1281. =======================================================================
  1282. 1)  These opinions are mine.-==- 2)  Sending me mail gives me
  1283. I'm too self-interested to  -==- permission to reproduce it in any form
  1284. speak for anyone else.      -==- unless otherwise explicitly stated.
  1285. =========================================================================
  1286. Date:         Tue, 3 May 1994 20:45:24 -0800
  1287. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1288. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1289. From:         Mike Cohen <isis@NETCOM.COM>
  1290. Subject:      Re: aete question
  1291.  
  1292. At  9:32 AM 5/4/94 +1000, Neville Smythe wrote:
  1293. >Two questions from someone who started early with AppleEvents and
  1294. >AppleScript but has been a bit out of touch for a while:
  1295. >
  1296. >1. What's the best way to construct and maintain an aete resource? The
  1297. >Hypercard Aete Editor stack seems to have been withdrawn from the AE
  1298. >Developer folder on ETO (my last version was 1.01b1). Has there been an
  1299. >update? ResEdit can't use its aete template, and Rez is too clumsy for this
  1300. >purpose.
  1301. >
  1302. I find that Marksman AppleEvent editor works much better (and faster) than
  1303. the stack. I still have only version 2.0 (and I trashed Marksman itself,
  1304. which I don't care for too much).
  1305.  
  1306. _______________________________________________________________
  1307. Mike Cohen
  1308. ISIS International   | "Software that means business"
  1309. (818) 788-4747 Voice | isis@netcom.com           | ALink: D6734
  1310. (818) 501-0653 Fax   | NewtonMail, eWorld: MikeC | AOL: MikeC20
  1311. =========================================================================
  1312. Date:         Tue, 3 May 1994 21:17:05 -0700
  1313. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1314. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1315. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  1316. Subject:      Re: FileMaker Pro & AppleScript Bug?
  1317.  
  1318. >Has anyone else had a problem with FileMaker Pro refusing to go any further in
  1319. >an AppleScipt?
  1320. >
  1321. >As far as I can tell, the problem appears when I use a "Do Script
  1322. ><something>" command. It does the FM script, and never quite gets back to the
  1323. >rest of the main script!
  1324. >
  1325. >Is there a reason for this?  A work around?  Is this a bug or am I missing
  1326. >something?
  1327.  
  1328. It appears that FileMaker is not returning any result from the do script
  1329. event.  This worked for me (BOTH the activates are important)
  1330.  
  1331. tell application "FileMaker Pro"
  1332.         activate
  1333.         ignoring application responses
  1334.                 Do Script "Test4"
  1335.                 tell me to activate
  1336.         end ignoring
  1337. end tell
  1338. display dialog ("Foo")
  1339.  
  1340. The first activate because FileMaker seems to expect it.
  1341.  
  1342. The second so that the display dialog is done with Script Editor in front.
  1343. Note that if you have the display dialog inside a tell application
  1344. "FileMaker Pro" then it executes in FileMaker's domain.  The odd placement
  1345. of the second activate is not a necesary part of the above...I was in
  1346. mid-experiment.  See a new thread.
  1347.  
  1348.  
  1349. Similar effects do NOT happen when the same (superficially) do script is
  1350. sent from Frontier, by the way.  In the above, "Test4" is a leftover script
  1351. in a play database, which sends a do script to Frontier...I was testing
  1352. that combination.
  1353.  
  1354.    --John
  1355.  
  1356. --
  1357. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  1358. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  1359. =========================================================================
  1360. Date:         Tue, 3 May 1994 21:36:10 -0800
  1361. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1362. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1363. From:         Ed Lai <lai@APPLE.COM>
  1364. Subject:      Re: aete question
  1365.  
  1366. >>Two questions from someone who started early with AppleEvents and
  1367. >>AppleScript but has been a bit out of touch for a while:
  1368. >>
  1369. >>1. What's the best way to construct and maintain an aete resource? The
  1370. >>Hypercard Aete Editor stack seems to have been withdrawn from the AE
  1371. >>Developer folder on ETO (my last version was 1.01b1). Has there been an
  1372. >>update? ResEdit can't use its aete template, and Rez is too clumsy for this
  1373. >>purpose.
  1374. >
  1375. >The latest version I know about of the 'aete' editor stack is found on the
  1376. >AppleScript Developers Kit (version 1.1) CD, at
  1377. >    AppleScript=81:Development Tools:Tools Goodies:
  1378. >    Aete Editor Stack 1.0b3:Aete Editor b3
  1379. >
  1380. >one path...broken by hand into two lines.  b3 has been around a long time.
  1381. >I often use Rez, often use the stack.  ResEdit chokes on the size of most
  1382. >'aete' resources.  I am told that Resourcerer is the best, but I don't have
  1383. >it.  [Coupon for $177 is in the Symantec C++ 7.0 manual, which might induce
  1384. >me to buy.]
  1385. >
  1386. >
  1387. >>2. How are Plural forms defined? The apple defined suites have them
  1388. >>("documents", "columns") but I can't see where in the aete or aeut resource
  1389. >>they come from, and no third party dictionaries seems to have plural forms
  1390. >>(which of course applescript users would expect to use when writing
  1391. >>scripts!).
  1392. >
  1393. >I've made several attempts to derez Scriptable Text Editor's 'aete' to
  1394. >remind myself how it's done.  I know it's simple.  I'll try again later.
  1395. >
  1396. >   --John
  1397. >
  1398. >--
  1399. >jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  1400. >finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  1401.  
  1402. If the aete editing involves plural, then b3 is not good enough, it has
  1403. a bug and will not output the plural. There is a b4 that fixes this
  1404. bug. I think /pub/appleevents/aete? in ftp.apple.com is b4, but I
  1405. am not 100% sure.
  1406.  
  1407. /* Disclaimer: All statments and opinions expressed are my own */
  1408. /* Edmund K. Lai                                               */
  1409. /* Apple Computer, MS303-3A                                    */
  1410. /* 20525 Mariani Ave,                                          */
  1411. /* Cupertino, CA 95014                                         */
  1412. /* (408)974-6272                                               */
  1413. zW@h9cOi
  1414. =========================================================================
  1415. Date:         Wed, 4 May 1994 02:07:14 -0500
  1416. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1417. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1418. From:         Atul Butte <Atul_Butte@BROWN.EDU>
  1419. Subject:      TCP/IP Scripting Addition
  1420.  
  1421. I am now sending my TCP/IP Scripting Addition (version 1.0) to the
  1422. gaea.kgs.ukans.edu AppleScript archives.  I think Fred Terry will post a
  1423. message when it becomes accessible.  You will find a 95K self-enclosed
  1424. archive containing the TCP/IP Scripting Addition, a text document listing
  1425. the changes from the beta 1 version, a text document detailing the
  1426. Licensing Information, a text document describing the sample scripts, a
  1427. Word document describing the Programming Instructions, and five sample
  1428. scripts using the addition.
  1429.  
  1430. Basically, this Scripting Addition (osax) allows you to write scripts using
  1431. MacTCP commands in AppleScript.  Potential uses of this include sending
  1432. e-mail through a script, checking if users are logged on (via Finger),
  1433. automating FTP, automating Gopher and NetNews, writing scripts to check
  1434. whether machines are up, UNIX lpr, and quickly writing many other TCP/IP
  1435. client-server programs.
  1436.  
  1437. There have been several changes since the beta 1 version -- you will need
  1438. to recompile your existing scripts.  The Add Linefeeds parameter to the tcp
  1439. write command has been removed; instead, all the read/write commands
  1440. (including the file ones) now support translation using the ISO 8859-1
  1441. Internet standard character set (many thanks go to Peter Lewis for
  1442. providing this code).  Several other bugs int he Scripting Addition and in
  1443. the sample scripts have been fixed.  Please read the Programming
  1444. Instructions for more details.
  1445.  
  1446. There are five sample programs included with this 1.0 release of the TCP/IP
  1447. Scripting Addition.  You may look at these sample programs and write your own
  1448. based on these.  The sample code is provided as both compiled and text files
  1449. (to ease compatibility with AppleScript 1.0).
  1450.  
  1451. 1. Drag and Drop FTP
  1452.  
  1453. Launch this application by itself, then enter the destination host and your
  1454. account name on that host. After the application quits, drag any files onto
  1455. the application. Enter your password and the destination directory in which
  1456. to store the files. The files will be transferred to the destination host using
  1457. the FTP protocol.
  1458.  
  1459. To change the destination host and account name, launch the application again
  1460. by itself.
  1461.  
  1462. You could modify this script to use another helper application to convert the
  1463. files to ASCII (Binhex) or AppleSingle. You could also modify it to use the
  1464. Password OSAX to hide the password as it is typed.
  1465.  
  1466. 2. Finger
  1467.  
  1468. Launch this application, then enter a internet host name and account to check.
  1469. This program will use the Finger protocol to get more information about that
  1470. account (like last login time, office phone number, etc). The results are
  1471. placed in a new Scriptable Text Editor window.
  1472.  
  1473. 3. Get Weather
  1474.  
  1475. This script finds the weather for Washington D.C., using the Gopher server
  1476. at wx.atmos.uiuc.edu. It takes the result and places it in a Scriptable Text
  1477. Editor window. You could add to this script to have it speak the weather to
  1478. you, or find you a weather map.  Please note: the server this script uses
  1479. is not always up and running.
  1480.  
  1481. 4. Gopher Server
  1482.  
  1483. Drag this application to a folder containing text files, then launch the
  1484. application. The text files in its folder (and those in any subfolder) will
  1485. be made available through Gopher. Use Gopher to connect to your Macintosh at
  1486. port 70 (the default for Gopher) and start browsing.
  1487.  
  1488. You could add to this script to support GIF/JPEG graphics files, or even
  1489. support the Gopher+ protocol.
  1490.  
  1491. 5. Send Mail
  1492.  
  1493. Run this script, then enter your e-mail host and account when prompted. This
  1494. program will send a simple message to that account, using the SMTP protocol.
  1495.  
  1496.  
  1497.  
  1498. If you find any problems with the Scripting Addition or its documentation,
  1499. or if you have suggestions for future versions, please let me know.
  1500.  
  1501. Please take the time to read and follow the Licensing Information provided
  1502. with the package (I don't think it would be appropriate for me to mention
  1503. the various options and fees directly in this forum).  If you use the
  1504. TCP/IP Scripting Addition for your own personal use, the licensing fee is
  1505. FREE.  Otherwise, if you wish to use the Scripting Addition for ANY
  1506. business, company, or university related task, or if you wish to distribute
  1507. the Scripting Addition, please read the Licensing Information document for
  1508. more details.
  1509.  
  1510. Thank you very much for you support!
  1511.  
  1512.  
  1513. -- Atul
  1514.  
  1515.  
  1516. DISCLAIMER: This package has nothing to do with Brown University,
  1517. Howard Hughes Medical Institute, or the National Institutes of Health.
  1518.  
  1519. ----------------------------------------------------------------------
  1520. Atul Butte
  1521. Brown University School of Medicine ('95)
  1522.  
  1523. currently at
  1524.    Howard Hughes Medical Institute / National Institutes of Health
  1525.  
  1526. atul_butte@brown.edu
  1527. atul_butte@nih.gov
  1528. =========================================================================
  1529. Date:         Wed, 4 May 1994 08:45:44 -0500
  1530. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1531. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1532. From:         Fred Terry <pfterry@LKS.CSI.COM>
  1533. Subject:      Re: TCP/IP Scripting Addition
  1534. In-Reply-To:  Your message of "Wed, 04 May 94 02:07:14 CDT"
  1535.  
  1536. I have placed Atul Butte's tcp/ip osax on gaea. You'll find it in
  1537.  
  1538. ftp://gaea.kgs.ukans.edu/applescript/osaxen/tcpip.osax.hqx
  1539.  
  1540. Enjoy.
  1541.  
  1542. pf
  1543. =========================================================================
  1544. Date:         Wed, 4 May 1994 11:30:29 -0500
  1545. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1546. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1547. From:         King Rhoton <king@ACPUB.DUKE.EDU>
  1548. Subject:      Re: TCP/IP Scripting Addition
  1549.  
  1550. >I have placed Atul Butte's tcp/ip osax on gaea. You'll find it in
  1551. >
  1552. >ftp://gaea.kgs.ukans.edu/applescript/osaxen/tcpip.osax.hqx
  1553.  
  1554. There appears to be a problem on gaea.  When trying to get a directory
  1555. listing or an actual file, I get:
  1556.  
  1557. 425 Can't create data socket (129.237.140.40,20): Interrupted system call.
  1558.  
  1559. on both my Sun and Mac.
  1560.  
  1561. King Rhoton                                             king@acpub.duke.edu
  1562. =========================================================================
  1563. Date:         Wed, 4 May 1994 10:35:32 -0500
  1564. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1565. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1566. From:         Fred Terry <pfterry@LKS.CSI.COM>
  1567. Subject:      Re: TCP/IP Scripting Addition
  1568. In-Reply-To:  Your message of "Wed, 04 May 94 11:30:29 CDT"
  1569.  
  1570. Hi everyone,
  1571.  
  1572. >>I have placed Atul Butte's tcp/ip osax on gaea. You'll find it in
  1573. >>
  1574. >>ftp://gaea.kgs.ukans.edu/applescript/osaxen/tcpip.osax.hqx
  1575. >
  1576. >There appears to be a problem on gaea.  When trying to get a directory
  1577. >listing or an actual file, I get:
  1578. >
  1579. >425 Can't create data socket (129.237.140.40,20): Interrupted system call.
  1580. >
  1581. >on both my Sun and Mac.
  1582. >
  1583. >King Rhoton                                             king@acpub.duke.edu
  1584.  
  1585. There is currently a problem on gaea. I've alerted the powers-that-be about it
  1586. and I'll let you know when I find out anything.
  1587.  
  1588. Sorry about that.
  1589.  
  1590. pf
  1591. =========================================================================
  1592. Date:         Wed, 4 May 1994 10:20:24 EST
  1593. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1594. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1595. From:         "Aaron E. McClennen" <Aaron_E._McClennen@HABITAT.ORG>
  1596. Organization: Habitat for Humanity International
  1597. Subject:      Runtime 2.0.1 script.compile
  1598.  
  1599. I have an agent that copies a file from one computer to another on a certain 
  1600. day
  1601. around 2:00 AM. The certain day is stored in the table.
  1602.  
  1603. There is also a script to change the day when the file is copied
  1604.  
  1605. local {
  1606.         day};
  1607.  
  1608. day = people.IS.EducareCopy.copyday;
  1609.  
  1610. if Dialog.ask("Are you sure you want to change the day from "+day+"?", @day) {
  1611.         table.assign( @people.IS.EducareCopy.copyday, day);
  1612.         script.compile(@system.agents.caller);
  1613.         }GThe recompile resets the sleepfor time so the day change has an 
  1614. effect
  1615.  
  1616. however when I change the day I would expect script.compile to relaunch
  1617. system.agents.caller, except it doesn't.
  1618.  
  1619. Any suggestions?
  1620.  
  1621. Thanks in advance
  1622.  
  1623. Aaron_E.McClennen@habitat.org
  1624. "Building houses with Gods people in need."
  1625. =========================================================================
  1626. Date:         Wed, 4 May 1994 12:31:40 -0400
  1627. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1628. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1629. From:         Laurent Daudelin <laurent@PLANON.QC.CA>
  1630. Subject:      MACSCRPT FTP site???
  1631.  
  1632. Hi there!
  1633.  
  1634. I was trying to connect to the MacScript ftp site yesterday, and was wondering
  1635. what is the exact address.  I tried an address taken from a precedent message,
  1636. address that was starting with "gaea", but, using Fetch, the connection seemed
  1637. to establish well, but, after some commands issued by Fetch to list the
  1638. content of a directory, an error was displayed in the Fetch transcript window
  1639. to the effect that the server was not able to allocate a port for the ls
  1640. command.  I tried a couple of time with same result, all of this happened
  1641. around 1:00 am.  What gives?
  1642.  
  1643. By the way, I found an answer to a precedent post of mine, titled "Applet &
  1644. Droplet".  For those of you who are not "AppleScript gurus", if you want to be
  1645. able to save a script as a droplet (an application onto which you can drop a
  1646. file), you must have at least the handler 'on open (someParm)'.  If you have
  1647. this handler in your script, ScriptEditor will allow you to save as a droplet
  1648. application, if not, you wont be able.  It's maybe obvious to the vast
  1649. majority of readers here, but was not for me, and I thought that others could
  1650. feel like me :-)  Sorry guys to bother you with this minor problem!
  1651.  
  1652. Thanks,
  1653.  
  1654. Laurent.
  1655. ---
  1656. ******************************************************************
  1657. Laurent Daudelin, Software Engineer
  1658. Planon TELEXPERTISE Inc., Boucherville, Quebec, CANADA
  1659. laurent@planon.qc.ca <-- NeXTMail welcome! (Mac Mail welcome too!)
  1660. =========================================================================
  1661. Date:         Wed, 4 May 1994 13:25:14 -0400
  1662. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1663. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1664. From:         "Steven L. Rohall" <slrohall@TASC.COM>
  1665. Subject:      Frontmost app on old mac?
  1666.  
  1667. I developed a simple application with Frontmost and have succeeded in
  1668. running it on various machines with various configurations, INITs, etc.,
  1669. including:  LCIII, Quadra 840AV, PowerBook 180, Quadra 610.  I've attempted
  1670. to port it to a IIfx that is now running System 7.1.  When I try to start
  1671. my application (saved as a complete application within Frontmost), I get an
  1672. error of type 3 (illegal instruction) before any windows are opened.  I
  1673. also tried to run the Frontmost application itself on this machine and got
  1674. an error type 1 (bus error) just after the Frontmost logo window appears.
  1675. I checked things I could think of: it's running in 32-bit mode, no virtual
  1676. memory, 20M of RAM, fresh copy of System 7.1.
  1677.  
  1678. Am I overlooking something?  Is there anything else I should check?  Has
  1679. anybody else run Frontmost or AppleScript stuff on an older mac like a
  1680. IIfx?
  1681.  
  1682.                                 -Steve.
  1683.  
  1684. +--------------------------------------------------------------+
  1685. | Steven L. Rohall                                             |
  1686. |                            ________ _        ______  ______  |
  1687. | 55 Walkers Brook Drive        /    / \      /     / /     /  |
  1688. | Reading, MA 01867-3297       /    /___\    /______ /         |
  1689. | Tel: (617)942-2000          /    /     \         //          |
  1690. | Fax: (617)942-7100         /    /       \/______//______/    |
  1691. | slrohall@tasc.com                                            |
  1692. | (MIME-conformant mail welcome.)                              |
  1693. +--------------------------------------------------------------+
  1694. =========================================================================
  1695. Date:         Wed, 4 May 1994 10:31:12 -0700
  1696. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1697. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1698. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  1699. Subject:      Finder Selection
  1700.  
  1701. The problem:  someone asks "Where is XXX?"  You know that XXX is buried
  1702. deeply in the folder structure on some CD-ROM.  So you carefully type out
  1703. the full path to reach XXX, and send off your reply.  This isn't what
  1704. computers are for.
  1705.  
  1706. Solution 1:  Run Frontier including the FinderMenu extension.  One of the
  1707. supplied items in the scripts menu it adds to Finder creates a Frontier
  1708. outline containing the full path to each selected item in Finder.
  1709.  
  1710. Solution 2:  Run the Scriptable Finder, and use a script derived from the
  1711. following.  Note that the script prefers to use the Jons Commands addition
  1712. to put the path(s) on the clipboard, but will use Scriptable Text Editor to
  1713. make the information available to you if you don't have Jons Commands.
  1714. Clearly, you should adjust the script to work the way you want it to.
  1715. [Tip:  if you want to keep the list of paths as a list, DON'T simply coerce
  1716. the list to a string.  Modify the repeat loop so that it coerces each item
  1717. to a string and appends it to a new list.]
  1718.  
  1719. set ans to ""
  1720. tell application "Finder"
  1721.     copy selection to sel
  1722.     repeat with x in sel
  1723.         set ans to ans & (x as string) & return
  1724.     end repeat
  1725. end tell
  1726. try
  1727.     set the clipboard to ans -- Requires Jons Commands
  1728. on error
  1729.     -- lacking Jons Commands, put the answer where it can be copied
  1730.     tell application "Scriptable Text Editor"
  1731.         make new document
  1732.         set the selection to ans
  1733.         activate
  1734.     end tell
  1735. end try
  1736.  
  1737.  
  1738.  
  1739. This works well as a script in the Finder scripts folder when you use
  1740. Leonard's OSA Menu (once you have a version of that which is happy with
  1741. Finder).
  1742.  
  1743. --
  1744. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  1745. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  1746. =========================================================================
  1747. Date:         Wed, 4 May 1994 12:46:22 -0500
  1748. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1749. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1750. From:         Fred Terry <pfterry@LKS.CSI.COM>
  1751. Subject:      gaea
  1752.  
  1753. gaea.kgs.ukans.edu is once again accessible, but let's not overload it during
  1754. the day. :-)
  1755.  
  1756.  
  1757.  
  1758. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  1759. Fred Terry  Cadence Design Systems  pfterry@lks.csi.com  +1 913 841 1283
  1760. =========================================================================
  1761. Date:         Wed, 4 May 1994 11:26:59 -0700
  1762. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1763. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1764. From:         Steve Michel <michel@NETCOM.COM>
  1765. Subject:      Re: Finder Selection
  1766.  
  1767. >The problem:  someone asks "Where is XXX?"  You know that XXX is buried
  1768. >deeply in the folder structure on some CD-ROM.  So you carefully type out
  1769. >the full path to reach XXX, and send off your reply.  This isn't what
  1770. >computers are for.
  1771. >
  1772. >Solution 1:  Run Frontier including the FinderMenu extension.  One of the
  1773. >supplied items in the scripts menu it adds to Finder creates a Frontier
  1774. >outline containing the full path to each selected item in Finder.
  1775. >
  1776. >Solution 2:  Run the Scriptable Finder, and use a script derived from the
  1777. >following.  Note that the script prefers to use the Jons Commands addition
  1778. >to put the path(s) on the clipboard, but will use Scriptable Text Editor to
  1779. >make the information available to you if you don't have Jons Commands.
  1780. >Clearly, you should adjust the script to work the way you want it to.
  1781. >[Tip:  if you want to keep the list of paths as a list, DON'T simply coerce
  1782. >the list to a string.  Modify the repeat loop so that it coerces each item
  1783. >to a string and appends it to a new list.]
  1784. >
  1785. >set ans to ""
  1786. >tell application "Finder"
  1787. >    copy selection to sel
  1788. >    repeat with x in sel
  1789. >        set ans to ans & (x as string) & return
  1790. >    end repeat
  1791. >end tell
  1792. >try
  1793. >    set the clipboard to ans -- Requires Jons Commands
  1794. >on error
  1795. >    -- lacking Jons Commands, put the answer where it can be copied
  1796. >    tell application "Scriptable Text Editor"
  1797. >        make new document
  1798. >        set the selection to ans
  1799. >        activate
  1800. >    end tell
  1801. >end try
  1802. >
  1803. Nice script, John. Here's a modified version of your repeat loop that
  1804. checks to see if any of the selected items are aliases. If they are, it
  1805. copies the path to the _original_ of the alias to the clipboard, instead of
  1806. the path to the selected alias:
  1807.  
  1808. repeat with x in sel
  1809.    if kind of x is "alias" then
  1810.        set ans to (ans & (original item of x) as string) & return
  1811.     else
  1812.        set ans to ans & (x as string) & return
  1813.    end if
  1814. end repeat
  1815.  
  1816. Steve
  1817. =========================================================================
  1818. Date:         Wed, 4 May 1994 11:27:03 -0700
  1819. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1820. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1821. From:         Steve Michel <michel@NETCOM.COM>
  1822. Subject:      Two short Finder scripts
  1823.  
  1824. Here are two useful scripts for the Scriptable Finder, most useful if you
  1825. have OSA Menu working with the Finder. Failing that, they are handy from
  1826. the Apple menu:
  1827.  
  1828. 1. Send to back. Sends the front window to the back, promoting every other
  1829. window up 1 layer:
  1830.  
  1831. tell application "Finder"
  1832.   set the index of window 1 to (the count of windows)
  1833. end tell
  1834.  
  1835. 2. Close all but first. Closes all windows but the one on top:
  1836.  
  1837. tell application "Finder"
  1838.     close (every window whose index is not 1)
  1839. end tell
  1840.  
  1841. 3. (So, I lied when I said there were two, I can't stop myself.) This one
  1842. reveals the original of a selected alias.
  1843.  
  1844. tell application "Finder"
  1845.   -- grab a list of selected aliases
  1846.   copy every alias file of selection to selectedFiles
  1847.   repeat with thisFile in selectedFiles
  1848.       try
  1849.          -- can we reveal the file?
  1850.          reveal original item of thisFile
  1851.       on error number errNum
  1852.          if errNum is 5038 then -- original not there
  1853.              display dialog "The original of the alias '" & the name of
  1854. thisFile & "' can't be found."
  1855.          end if
  1856.       end try
  1857.   end repeat
  1858. end tell
  1859.  
  1860. Enjoy!
  1861.  
  1862. Steve
  1863. =========================================================================
  1864. Date:         Wed, 4 May 1994 14:42:51 -0500
  1865. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1866. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1867. From:         Herb Schilling <hschilling@LERC.NASA.GOV>
  1868. Subject:      Re: Frontmost app on old mac?
  1869.  
  1870. >I developed a simple application with Frontmost and have succeeded in
  1871. >running it on various machines with various configurations, INITs, etc.,
  1872. >including:  LCIII, Quadra 840AV, PowerBook 180, Quadra 610.  I've attempted
  1873. >to port it to a IIfx that is now running System 7.1.  When I try to start
  1874. >my application (saved as a complete application within Frontmost), I get an
  1875. >error of type 3 (illegal instruction) before any windows are opened.  I
  1876. >also tried to run the Frontmost application itself on this machine and got
  1877. >an error type 1 (bus error) just after the Frontmost logo window appears.
  1878. >I checked things I could think of: it's running in 32-bit mode, no virtual
  1879. >memory, 20M of RAM, fresh copy of System 7.1.
  1880. >
  1881. >Am I overlooking something?  Is there anything else I should check?  Has
  1882. >anybody else run Frontmost or AppleScript stuff on an older mac like a
  1883. >IIfx?
  1884. >
  1885.  
  1886. Hello,
  1887.  
  1888.  Yes, I have run FrontMost apps on an IIfx running System 7 Pro. I have had
  1889. some problems with some specific things ( which Uncle Dave admits is a bug
  1890. ), but otherwise it works fine. One thing I was told was to avoid using
  1891. complete applications for now. Use mini apps for now.
  1892.  
  1893. --
  1894. Herb Schilling NASA Lewis Research Center 21000 Brookpark Road Mail Stop 142-4
  1895. Cleveland Ohio 44135 (216) 433-8955 Fax:(216)433-8000 
  1896. sshws@convx1.lerc.nasa.gov
  1897. AppleLink: SCHILLING.H
  1898. =========================================================================
  1899. Date:         Tue, 3 May 1994 23:41:00 -0400
  1900. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1901. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1902. Comments:     Warning -- original Sender: tag was ross@BNR.CA
  1903. From:         ab026@FREENET.CARLETON.CA
  1904. Subject:      Re: Clipboard juggling
  1905.  
  1906. Igor <igorl@uiuc.edu> writes:
  1907.  
  1908. >I am trying to use MenuEvents and Jon's Commands in tandem to copy selected
  1909. >text within an active window to the clipboard. Then, I place the contents
  1910. >of the clipboard into a string variable and pass it as an argument to a
  1911. >command directed to another application.
  1912. >
  1913. >The text definitely gets copied, but the application does not put the
  1914. >contents into the system scrap, rather it keep is locally. I thought that
  1915. >actiavting/deactivating between two apps would force the first application
  1916. >to set system scrap to its local scrap as it surrenders its foreground
  1917. >status, but is not the case.
  1918. >
  1919. >Here's what happens:
  1920. >
  1921. >1. The script runs, and the copy is performed via MenuEvents in app1
  1922. >
  1923. >2. App2 is activated, but the clipboard contains old system scrap data
  1924. >
  1925. >3. If I manually bring app1 to the foreground and then manually bring app2
  1926. >to the foreground (no other actions in between), the system scrap will
  1927. >contain new data.
  1928. >
  1929. >Because of this, I cannot use Jon's Commands' the clipboard OSAX as it
  1930. >seems to work with system scrap only. Forcing several iterations of
  1931. >activate app1, activate app2 does not help at all.
  1932. >
  1933. >So, is there a way to force an application to update system scrap?
  1934. >
  1935. >Below are two AS handlers that do the work:
  1936. >
  1937. >--
  1938. >
  1939. >on CopiedSelection()
  1940. >  global menuID, itemID, hostApplication, selectedURL
  1941. >
  1942. >  try
  1943. >    tell application hostApplication
  1944. >      activate
  1945. >      Select Menu Item menu id menuID menu item id itemID -- copy the URL
  1946. >to the clipboard
  1947. >      set selectedURL to (the clipboard as string) -- make local copy of
  1948. >the selection
  1949. >      return true
  1950. >    end tell
  1951. >  on error
  1952. >    return false
  1953. >  end try
  1954. >end CopiedSelection
  1955. >
  1956. >--
  1957. >
  1958. >on FetchSelection()
  1959. >  global selectedURL
  1960. >
  1961. >  try
  1962. >    tell application "Anarchie"
  1963. >      activate
  1964. >      --fetch url selectedURL
  1965. >    end tell
  1966. >  on error errorString number errorNumber
  1967. >    -- better error handling under construction
  1968. >    error errorString number errorNumber
  1969. >  end try
  1970. >end FetchSelection
  1971.  
  1972. >From reading the code, it seems that you are using Jon's "the clipboard"
  1973. command immediately after copying the URL to the private scrap, i.e., before
  1974. the application "hostApplication" has been suspended in favor of Anarchie.
  1975.  
  1976. The data you want isn't in the desk scrap (where "the clipboard" can find
  1977. it) until that suspension occurs.  Try moving "the clipboard" to the handler
  1978. which deals with Anarchie.
  1979.  
  1980. Ross Brown - AWOL Software Productions
  1981. PO Box 24207, 300 Eagleson Road, Kanata, Ontario, Canada K2M 2C3
  1982. publisher of AWOL Utilities - "the best deal in freeware!"
  1983. ab026@freenet.carleton.ca
  1984. =========================================================================
  1985. Date:         Wed, 4 May 1994 17:07:34 -0800
  1986. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1987. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1988. From:         Robert Mark <rmark@ISDMNL.WR.USGS.GOV>
  1989. Subject:      Re: Two short Finder scripts
  1990.  
  1991. >Here are two useful scripts for the Scriptable Finder, most useful if you
  1992. >have OSA Menu working with the Finder. Failing that, they are handy from
  1993. >the Apple menu:
  1994. >
  1995. When I try to run these from OSA Menu, I get an out of memory error (-108).
  1996.  They work if I launch them directly from the Finder. (Finder 7.1.3 with 32
  1997. meg).
  1998. What am I missing?
  1999.  
  2000. Robert Mark
  2001. USGS
  2002. rmark@isdmnl.wr.usgs.gov
  2003. =========================================================================
  2004. Date:         Wed, 4 May 1994 21:54:17 -0700
  2005. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2006. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2007. From:         Jon Pugh <jonpugh@NETCOM.COM>
  2008. Subject:      Re: Finder Scripts
  2009.  
  2010. Remember, any time you see a script with the Scriptable Finder's selection,
  2011. you can do the same thing without the Scriptable Finder and with Jon's
  2012. Commands.
  2013.  
  2014. tell application "Finder"
  2015.     copy selection to sel
  2016. end tell
  2017.  
  2018. is the same as:
  2019.  
  2020. copy (finder selection) to sel
  2021.  
  2022. In addition, Jon's Commands is free.  ;)
  2023.  
  2024. Also, here is Steve Michel's reveal alias script turned into my Alias
  2025. =46inder Pro application. ;)  It does everything my app does (which is to
  2026. reveal the file unless you have the option key down, in which case it
  2027. brings up the Get Info dialog on the original).  You can even save this as
  2028. a droplet and it will perform exactly like Alias Finder Pro.  I guess I
  2029. didn't need to even write that sucker.  ;)
  2030.  
  2031. on run
  2032.   tell application "Finder"
  2033.     -- grab a list of selected aliases
  2034.     copy every alias file of selection to selectedFiles
  2035.     repeat with thisFile in selectedFiles
  2036.       try
  2037.         -- can we find the original file?
  2038.         if (keys pressed) contains "option" then -- Jon's Commands
  2039.           open information window of original item of thisFile
  2040.         else
  2041.           reveal original item of thisFile
  2042.         end if
  2043.       on error number errNum
  2044.         if errNum is 5038 then -- original not there
  2045.           display dialog "The original of the alias '" & the name of=
  2046.  thisFile =AC
  2047.           & "' can't be found."
  2048.         end if
  2049.       end try
  2050.     end repeat
  2051.   end tell
  2052. end run
  2053.  
  2054. on open (theFiles)
  2055.   tell application "Finder"
  2056.     repeat with thisFile in theFiles
  2057.       if (keys pressed) contains "option" then -- Jon's Commands
  2058.         open information window of thisFile
  2059.       else
  2060.         reveal thisFile
  2061.       end if
  2062.     end repeat
  2063.   end tell
  2064. end open
  2065.  
  2066. This one does need the Scriptable Finder though since it is the one that
  2067. resolves the aliases.  I guess that means that Alias Finder Pro is still
  2068. useful to people without the Scriptable Finder.
  2069.  
  2070. Whew.  ;)
  2071.  
  2072. Jon
  2073. =========================================================================
  2074. Date:         Wed, 4 May 1994 22:00:17 -0700
  2075. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2076. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2077. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2078. Subject:      Re: Two short Finder scripts
  2079.  
  2080. >>Here are two useful scripts for the Scriptable Finder, most useful if you
  2081. >>have OSA Menu working with the Finder. Failing that, they are handy from
  2082. >>the Apple menu:
  2083. >>
  2084. >When I try to run these from OSA Menu, I get an out of memory error (-108).
  2085. > They work if I launch them directly from the Finder. (Finder 7.1.3 with 32
  2086. >meg).
  2087. >What am I missing?
  2088.  
  2089. You are missing a future release of OSA Menu, which solves the problem.
  2090. While you wait, you can increase the memory partition allocated to Finder.
  2091. That's not as easy as it sounds, since Finder won't do it.  Given ResEdit,
  2092. one approach is
  2093.  
  2094. 1.  Move Finder from the System Folder to your desktop
  2095.  
  2096. 2.  Option-drag a copy of Finder back into the System Folder.
  2097.  
  2098. The running Finder is now on the desktop...leave it alone.
  2099.  
  2100. 3.  Open the copy of Finder (in the System Folder) in ResEdit, and open the
  2101. SIZE resource.  You can do the next step Finder's way:  copy the SIZE -1
  2102. resource, making the copy have ID 0.  Edit the new SIZE 0 resource to
  2103. increase the memory partition specified in the (final) numeric field.
  2104.  
  2105.     Or, you can just edit the SIZE -1 resource to increase the number.
  2106.  
  2107. 4.  Save the modified Finder, and restart the Macintosh.  Toss out the
  2108. Finder from the desktop (or be sensible and keep it in reserve for a while
  2109. in case I'm all wet).
  2110.  
  2111. How much extra memory?  Be generous...increase it by 50% or so.  [This
  2112. change seems, here, also to repair Finder's annoying habit of claiming
  2113. there isn't enough memory to do simple things, when there's clearly
  2114. plenty.]
  2115.  
  2116. Clearly, if you have two startup volumes, you can simple edit the inactive
  2117. Finder, restart on that volume, and edit the now-inactive Finder, rather
  2118. than going through the above.
  2119.  
  2120. --
  2121. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  2122. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  2123. =========================================================================
  2124. Date:         Thu, 5 May 1994 10:28:44 EDT
  2125. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2126. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2127. From:         "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
  2128. Subject:      MS: Monthly Admin Mailing
  2129.  
  2130. Save this mail message. It includes all the e-mail addresses you need when
  2131. dealing with the Mac Scripting mailing list.
  2132.  
  2133. *** To Unsubscribe from this list:
  2134.  
  2135. Send to: LISTSERV@dartmouth.edu
  2136. Subject: unsubscribe
  2137. Message: signoff macscrpt
  2138.  
  2139.  
  2140. *** To subscribe to this list:
  2141.  
  2142. Send to: LISTSERV@dartmouth.edu
  2143. Subject: subscribe
  2144. Message: subscribe macscrpt <your full name here>
  2145.  
  2146.  
  2147. *** To get other info on using this automated system:
  2148.  
  2149. Send to: LISTSERV@dartmouth.edu
  2150. Subject: help
  2151. Message: help
  2152.  
  2153.  
  2154. *** To ask the human moderators a question:
  2155.  
  2156. Send to: MacScripting-Request@dartmouth.edu
  2157.  
  2158.  
  2159. *** To send a message to the mailing list:
  2160.  
  2161. Send to: MacScripting@dartmouth.edu
  2162.  
  2163.  
  2164. Thanks.
  2165.  
  2166. -The Moderators (a very offcial way of saying "Fred & Andy")
  2167. =========================================================================
  2168. Date:         Thu, 5 May 1994 11:30:21 -0500
  2169. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2170. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2171. From:         George Synowiec <synowie@NICKEL.UCS.INDIANA.EDU>
  2172. Subject:      retrieving the hardware address
  2173.  
  2174. Has anybody written an osax that would allow me to retrieve the
  2175. hardware address of the ethernet card of the machine I'm working on?
  2176. Nothing on gaea jumped out at me. ( yes, I checked the TCP/IP kit).
  2177.  
  2178. Or, alternatively, does a scriptable application exist that will
  2179. retrieve the address? Any help would be appreciated.
  2180.  
  2181. George Synowiec
  2182. Indiana University
  2183. =========================================================================
  2184. Date:         Thu, 5 May 1994 10:57:55 -0600
  2185. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2186. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2187. From:         Shannon V Spires <svspire@SOMNET.SANDIA.GOV>
  2188. Subject:      Controlling Send Mode?
  2189.  
  2190. How can I control the send mode of events sent with
  2191. Applescript, like the kAENeverInteract bit, etc.?
  2192.  
  2193. Thanks,
  2194. Shannon Spires
  2195. svspire@sandia.gov
  2196. =========================================================================
  2197. Date:         Thu, 5 May 1994 13:11:16 -0500
  2198. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2199. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2200. From:         King Rhoton <king@ACPUB.DUKE.EDU>
  2201. Subject:      Re: retrieving the hardware address
  2202.  
  2203. >Has anybody written an osax that would allow me to retrieve the
  2204. >hardware address of the ethernet card of the machine I'm working on?
  2205. >Nothing on gaea jumped out at me. ( yes, I checked the TCP/IP kit).
  2206. >
  2207. >Or, alternatively, does a scriptable application exist that will
  2208. >retrieve the address? Any help would be appreciated.
  2209.  
  2210. Along these same lines, how about a ip#->name script or app.  DNS runs on
  2211. port 53 (I believe), so I can open a connection, but I can't find
  2212. documentation for the data I need to pass to our DNServer to get the name
  2213. back.
  2214.  
  2215. King Rhoton                                             king@acpub.duke.edu
  2216. =========================================================================
  2217. Date:         Thu, 5 May 1994 14:13:24 EDT
  2218. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2219. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2220. From:         Atul Butte <ATUL@BROWNVM.BROWN.EDU>
  2221. Subject:      Re: retrieving the hardware address
  2222.  
  2223. >Along these same lines, how about a ip#->name script or app.  DNS runs on
  2224. >port 53 (I believe), so I can open a connection, but I can't find
  2225. >documentation for the data I need to pass to our DNServer to get the name
  2226. >back.
  2227. >
  2228. >King Rhoton                                             king@acpub.duke.edu
  2229.  
  2230. I will add this to the next version of the TCP/IP Scripting Extension...
  2231.  
  2232. -- Atul
  2233. =========================================================================
  2234. Date:         Thu, 5 May 1994 15:01:19 -0400
  2235. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2236. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2237. From:         Frank Lowney <flowney@MAIL.GAC.PEACHNET.EDU>
  2238. Subject:      Re: retrieving the hardware address
  2239.  
  2240. >>Along these same lines, how about a ip#->name script or app.  DNS runs on
  2241. >>port 53 (I believe), so I can open a connection, but I can't find
  2242. >>documentation for the data I need to pass to our DNServer to get the name
  2243. >>back.
  2244. >>
  2245. >>King Rhoton                                             king@acpub.duke.edu
  2246. >
  2247. >I will add this to the next version of the TCP/IP Scripting Extension...
  2248. >
  2249.  
  2250. Along these lines, how would one obtain the ip of the source of an incoming
  2251. stream?
  2252.  
  2253. *********************************************************************
  2254. Dr. Frank Lowney, Director, Regional Teacher Education Center
  2255.                   System Administrator, The GC EduNET Project
  2256. CBX 034, School of Education
  2257. Georgia College, Milledgeville, GA 31061-0490
  2258. Voice: (912) 453-5121
  2259. via GC EduNET, Georgia's Statewide K-12 Education Network, telnet to:
  2260.         gcedunet.peachnet.edu
  2261. *********************************************************************
  2262. =========================================================================
  2263. Date:         Thu, 5 May 1994 14:51:58 -0500
  2264. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2265. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2266. From:         "arnold v. lesikar" <lesikar@TIGGER.STCLOUD.MSUS.EDU>
  2267. Subject:      AppleScript1.1 again
  2268.  
  2269. I just signed onto the list, so I may have missed the answer to my question
  2270. earlier in May. I have read through the March and April digests.
  2271.  
  2272. Random House is out of stock on the Applescript Handbook Update Disks, with
  2273. no info available as to when the disk will be again in stock, according to
  2274. Customer Service. Is the only hope for procuring the Applescript Update now
  2275. to lay out $99 or $199 to purchase the Developers Kit? That's a big jump in
  2276. price from $4.75 to $99! I'd like of course to procure Frontmost along with
  2277. the 1.1 update and whatever other goodies Danny Goodman was providing.
  2278.  
  2279. TIA
  2280.  
  2281. arn
  2282. lesikar@tigger.stcloud.msus.edu
  2283. =========================================================================
  2284. Date:         Thu, 5 May 1994 16:46:08 -0400
  2285. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2286. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2287. From:         Bill Johnston <johnston@ME.UDEL.EDU>
  2288. Subject:      Re: AppleScript1.1 again
  2289. In-Reply-To:  <9405052000.AA17820@me.udel.edu>
  2290.  
  2291. On Thu, 5 May 1994, arnold v. lesikar wrote:
  2292.  
  2293. > I just signed onto the list, so I may have missed the answer to my question
  2294. > earlier in May. I have read through the March and April digests.
  2295. >
  2296. > Random House is out of stock on the Applescript Handbook Update Disks, with
  2297. > no info available as to when the disk will be again in stock, according to
  2298. > Customer Service. Is the only hope for procuring the Applescript Update now
  2299. > to lay out $99 or $199 to purchase the Developers Kit? That's a big jump in
  2300. > price from $4.75 to $99! I'd like of course to procure Frontmost along with
  2301. > the 1.1 update and whatever other goodies Danny Goodman was providing.
  2302. > lesikar@tigger.stcloud.msus.edu
  2303.  
  2304. Another route is to buy HyperCard 2.2 for $99 from APDA, or to
  2305. update an existing registered copy of HC 2.0.v2 or 2.1 for $89.
  2306. Seems to me that the rest of the package in this case is worth
  2307. more than what you get with "System 7 Pro".
  2308.  
  2309. Can't speak for the Developer's Kit, because I haven't seen it.
  2310. I would however be interested in knowing how to get a copy
  2311. of a system release that includes Scriptable Finder ... are
  2312. any shipping yet?
  2313.  
  2314. Bill
  2315.  
  2316. -- Bill Johnston (johnston@me.udel.edu)
  2317. -- 38 Chambers Street; Newark, DE 19711; (302)368-1949
  2318. =========================================================================
  2319. Date:         Thu, 5 May 1994 14:12:44 -0700
  2320. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2321. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2322. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2323. Subject:      Re: AppleScript1.1 again
  2324.  
  2325. >On Thu, 5 May 1994, arnold v. lesikar wrote:
  2326.  
  2327. >Can't speak for the Developer's Kit, because I haven't seen it.
  2328. >I would however be interested in knowing how to get a copy
  2329. >of a system release that includes Scriptable Finder ... are
  2330. >any shipping yet?
  2331.  
  2332. The AppleScript Developer's Kit (1.1) contains the Scriptable Finder.  That
  2333. is, it contains the Finder Scripting Extension, which adds Scriptable
  2334. Finder-ness to several existing Finders.
  2335.  
  2336. I don't know of other sources, which doesn't mean there aren't other sources.
  2337.  
  2338. I expect the extension to be rolled into the Finder in System 7.5, but my
  2339. expectations carry NO weight with Apple.
  2340.  
  2341.    --John
  2342.  
  2343. --
  2344. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  2345. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  2346. =========================================================================
  2347. Date:         Thu, 5 May 1994 16:29:02 -0700
  2348. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2349. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2350. From:         Rob Dewhirst <robd@FARALLON.COM>
  2351. Subject:      Scrolling lists/menus in Frontmost
  2352.  
  2353. Has anyone tried to get scrolling lists with icons and text in them with
  2354. Frontmost? Like Frontmost's own project window?
  2355.  
  2356. What about menus with icons in them?
  2357. =========================================================================
  2358. Date:         Thu, 5 May 1994 17:43:20 -0400
  2359. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2360. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2361. From:         "George R. Brown" <gbrown@PARTECH.COM>
  2362. Subject:      pgmTools problem?
  2363.  
  2364. I tried to download the pgmTools.sit.hqx from gaea.kgs.ukans.edu and got an
  2365. error from DeHQX saying it couldn't find the start.  Is anyone aware of a
  2366. problem with this file or am I decoding it wrong?
  2367.  
  2368.  - gb (george@partech.com)
  2369. =========================================================================
  2370. Date:         Thu, 5 May 1994 16:36:47 -0800
  2371. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2372. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2373. From:         Jamie Lawrence <jamiel@SYBASE.COM>
  2374. Subject:      referencing specific messages in eudora mailboxes
  2375.  
  2376. Hi all-
  2377. I am writing a script to store old email in a filemaker pro
  2378. database. The problem is that I can't figure out how to
  2379. reference a specific message in a mailbox.
  2380. here is the applicable code-
  2381.  
  2382. tell application "Eudora1.4.2"
  2383.  
  2384.         set num to (count the messages in mailbox "OUT")
  2385.         set counter to 1
  2386.         repeat while counter < num
  2387. *       set ETo to the value of field "To" of message num
  2388. *       set EFrom to the value of field "From" of message num
  2389. *       set ESubject to the value of field "Subject" of message num
  2390.         set EBody to the value of field ""
  2391.         tell application "FileMaker Pro"
  2392.                 Begin Transaction
  2393.                 Create new Record
  2394.  
  2395. [blah blah blah]
  2396.  
  2397. I get runtime execution error on the first line of the above,
  2398. saying that the mailbox "out" doesn't understand the messages
  2399. message. Even tho I can't get there, I am assuming that lines
  2400. marked with '*'s above won't work either for the same reason.
  2401.  
  2402. Any tips?
  2403.  
  2404. thanks-
  2405. -j
  2406. =========================================================================
  2407. Date:         Fri, 6 May 1994 12:41:36 +1200
  2408. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2409. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2410. From:         Michael Norris <michael.norris@STONEBOW.OTAGO.AC.NZ>
  2411. Subject:      Re: referencing specific messages in eudora mailboxes
  2412.  
  2413. >Hi all-
  2414. >I am writing a script to store old email in a filemaker pro
  2415. >database. The problem is that I can't figure out how to
  2416. >reference a specific message in a mailbox.
  2417. >here is the applicable code-
  2418. >
  2419. >tell application "Eudora1.4.2"
  2420. >
  2421. >        set num to (count the messages in mailbox "OUT")
  2422. >        set counter to 1
  2423. >        repeat while counter < num
  2424. >*       set ETo to the value of field "To" of message num
  2425. >*       set EFrom to the value of field "From" of message num
  2426. >*       set ESubject to the value of field "Subject" of message num
  2427. >        set EBody to the value of field ""
  2428. >        tell application "FileMaker Pro"
  2429. >                Begin Transaction
  2430. >                Create new Record
  2431. >
  2432. >[blah blah blah]
  2433. >
  2434. >I get runtime execution error on the first line of the above,
  2435. >saying that the mailbox "out" doesn't understand the messages
  2436. >message. Even tho I can't get there, I am assuming that lines
  2437. >marked with '*'s above won't work either for the same reason.
  2438. >
  2439. >Any tips?
  2440. >
  2441. >thanks-
  2442. >-j
  2443.  
  2444. Here's the correct syntax
  2445. >tell application "Eudora1.4.2"
  2446. >
  2447. >        set num to (number of message in mailbox "OUT" of mail folder "")
  2448. >        set counter to 1
  2449. >        repeat while counter < num
  2450. >*       set ETo to field "To" of message num of mailbox "OUT" of mail folder 
  2451. ""
  2452. >*       set EFrom to field "From" of message num of mailbox "OUT" of mail
  2453. >folder ""
  2454. >*       set ESubject to field "Subject" of message num of mailbox "OUT" of
  2455. >mail folder ""
  2456. >        set EBody to field "" of mailbox "OUT" of mail folder ""
  2457. >        tell application "FileMaker Pro"
  2458. >                Begin Transaction
  2459. >                Create new Record
  2460. >
  2461.  
  2462. Cheers,
  2463.  
  2464. Michael Norris,
  2465. CAL Consultant,
  2466. University of Otago,
  2467. PO Box 56,
  2468. Dunedin,
  2469. New Zealand.
  2470. ---------------------
  2471. Ph:(03) 479-7705
  2472. E-Mail: michael.norris@stonebow.otago.ac.nz
  2473. =========================================================================
  2474. Date:         Thu, 5 May 1994 18:09:48 -0700
  2475. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2476. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2477. From:         "Allan R. Crump" <jhhw@CRL.COM>
  2478. Subject:      Re: AppleScript1.1 again
  2479. In-Reply-To:  <199405052112.AA10460@mail.crl.com>
  2480.  
  2481. I received the scriptable finder directly from Apple.  If you call them
  2482. for technical support and bug them a little, they will e-mail you a copy.
  2483. Allan Crump
  2484. -------------------------------------------------------------------------
  2485.  
  2486. On Thu, 5 May 1994, John W. Baxter wrote:
  2487.  
  2488. > >On Thu, 5 May 1994, arnold v. lesikar wrote:
  2489. >
  2490. > >Can't speak for the Developer's Kit, because I haven't seen it.
  2491. > >I would however be interested in knowing how to get a copy
  2492. > >of a system release that includes Scriptable Finder ... are
  2493. > >any shipping yet?
  2494. >
  2495. > The AppleScript Developer's Kit (1.1) contains the Scriptable Finder.  That
  2496. > is, it contains the Finder Scripting Extension, which adds Scriptable
  2497. > Finder-ness to several existing Finders.
  2498. >
  2499. > I don't know of other sources, which doesn't mean there aren't other sources.
  2500. >
  2501. > I expect the extension to be rolled into the Finder in System 7.5, but my
  2502. > expectations carry NO weight with Apple.
  2503. >
  2504. >    --John
  2505. >
  2506. > --
  2507. > jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  2508. > finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  2509. >
  2510. =========================================================================
  2511. Date:         Thu, 5 May 1994 21:29:08 -0400
  2512. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2513. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2514. From:         Jaime Jouris <jaime@WORLD.STD.COM>
  2515. Subject:      Re: Scrolling lists/menus in Frontmost
  2516. In-Reply-To:  <199405052138.AA09060@world.std.com>
  2517.  
  2518. We were able to do this using an LDEF that came with WindowScript, a
  2519. Hypercard add-on written by the same people who did Frontmost.  If you
  2520. don't have WindowScript, you might want to contact the company to see if
  2521. they can help you out. The authors of Frontmost hang out on AppleLink in
  2522. the AppleScript Talk forum, so you might be able to catch them there.
  2523.  
  2524. Jaime
  2525.  
  2526. On Thu, 5 May 1994, Rob Dewhirst wrote:
  2527.  
  2528. > Has anyone tried to get scrolling lists with icons and text in them with
  2529. > Frontmost? Like Frontmost's own project window?
  2530. >
  2531. > What about menus with icons in them?
  2532. >
  2533. =========================================================================
  2534. Date:         Thu, 5 May 1994 22:18:15 -0400
  2535. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2536. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2537. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  2538. Subject:      Re: AppleScript1.1 again
  2539. In-Reply-To:  <no.id> from "John W. Baxter" at May 5, 94 02:12:44 pm
  2540.  
  2541. --John W. Baxter wrote:
  2542. >
  2543. >>On Thu, 5 May 1994, arnold v. lesikar wrote:
  2544. >
  2545. >>I would however be interested in knowing how to get a copy
  2546. >>of a system release that includes Scriptable Finder ... are
  2547. >>any shipping yet?
  2548. >
  2549. >The AppleScript Developer's Kit (1.1) contains the Scriptable Finder.  That
  2550. >is, it contains the Finder Scripting Extension, which adds Scriptable
  2551. >Finder-ness to several existing Finders.
  2552.  
  2553.     Actually, unless you consider the beta System 7.5 Finder "existing",
  2554. the only Finder that Finder Scripting Extension works with is Finder 7.1.3.
  2555.  
  2556. >I don't know of other sources, which doesn't mean there aren't other sources.
  2557.  
  2558.     Aside from the person who said he convinced Apple to send it to him,
  2559. the only other way to get the Finder Scripting Extension is to buy the
  2560. AppleScript Scripter's Kit. Costs about $130-$150 from MacConnection and
  2561. other popular mail-order houses.
  2562.  
  2563. >I expect the extension to be rolled into the Finder in System 7.5, but my
  2564. >expectations carry NO weight with Apple.
  2565.  
  2566.     I had though Apple publicly stated that there will be a "scriptable
  2567. Finder" in System 7.5?
  2568.  
  2569. -Hades
  2570. =========================================================================
  2571. Date:         Thu, 5 May 1994 21:36:14 -0700
  2572. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2573. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2574. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2575. Subject:      Re: pgmTools problem?
  2576.  
  2577. >I tried to download the pgmTools.sit.hqx from gaea.kgs.ukans.edu and got an
  2578. >error from DeHQX saying it couldn't find the start.  Is anyone aware of a
  2579. >problem with this file or am I decoding it wrong?
  2580.  
  2581. Anarchie was perfectly happy to download the file for me just now (Thursday
  2582. evening left coast time).
  2583.  
  2584. --John
  2585.     This is a mime test.  It shouldn't hurt much  =3D=AB=B3=B2=BB (checking =
  2586. my
  2587. LISTSERV options.
  2588.  
  2589. --
  2590. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  2591. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  2592. =========================================================================
  2593. Date:         Thu, 5 May 1994 21:45:29 -0700
  2594. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2595. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2596. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2597. Subject:      Re: AppleScript1.1 again
  2598.  
  2599. >> [Quoting me:]
  2600. >>The AppleScript Developer's Kit (1.1) contains the Scriptable Finder.  That
  2601. >>is, it contains the Finder Scripting Extension, which adds Scriptable
  2602. >>Finder-ness to several existing Finders.
  2603. >
  2604. >    Actually, unless you consider the beta System 7.5 Finder "existing",
  2605. >the only Finder that Finder Scripting Extension works with is Finder 7.1.3.
  2606.  
  2607. That's odd...it's doing just fine with Finder 7.1.4, here on my 8100.  I
  2608. recently claimed that the extension works with Finder 7.1.3 and later, and
  2609. was told that it works back to 7.1.  That's why I hedged.  I don't have the
  2610. beta System 7.5 Finder (which I understand multi-hand doesn't need the
  2611. extension).
  2612.  
  2613. [Quoting me, again:]
  2614. >>I expect the extension to be rolled into the Finder in System 7.5, but my
  2615. >>expectations carry NO weight with Apple.
  2616. >
  2617. >    I had though Apple publicly stated that there will be a "scriptable
  2618. >Finder" in System 7.5?
  2619.  
  2620. They've also publicly said 7.5 would be out this spring (since corrected).
  2621. Not to mention the New Printing Architecture a couple of years ago (which
  2622. seemingly will be out this spring, when QuickDraw GX beats System 7.5 out
  2623. the door.
  2624.  
  2625. That is why I hedged that part (plus I wasn't sure I remembered Apple as
  2626. the direct source for "Scriptable Finder in 7.5").  There's no reason to
  2627. expect that it won't be.
  2628.  
  2629. --John
  2630.  
  2631. --
  2632. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  2633. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  2634. =========================================================================
  2635. Date:         Fri, 6 May 1994 01:10:33 EDT
  2636. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2637. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2638. From:         Atul Butte <ATUL@BROWNVM.BROWN.EDU>
  2639. Subject:      Re: retrieving the hardware address
  2640.  
  2641. >Along these lines, how would one obtain the ip of the source of an incoming
  2642. >stream?
  2643.  
  2644. Use tcp status on the stream.  One of the fields in the returned record
  2645. is the remote host and port for the other end of the connection...
  2646.  
  2647. -- Atul
  2648. =========================================================================
  2649. Date:         Fri, 6 May 1994 12:26:50 +0100
  2650. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2651. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2652. From:         Tony McDonald <Tony.McDonald@NEWCASTLE.AC.UK>
  2653. Subject:      FrontMost example scripts....
  2654.  
  2655. Hi,
  2656. I've been 'lurking' on this list for a while and have been impressed with
  2657. the knowledge shown (creep creep!) and I think it's at least in part to the
  2658. list that I'm slowly (oh sooo slowly) picking up AppleScript.
  2659.  
  2660. Soooo, does anyone have any example FrontMost scripts they can share?
  2661. getting stuff for that and Eudora is my main aim at the moment. There
  2662. doesn't seem to be anything on gaea.
  2663.  
  2664. TIA
  2665. Tone
  2666. ps I'm *really* impressed with those TCP/IP osaxen!
  2667.  
  2668. -----------------------------------------------  Tony.McDonald@newcastle.ac.uk
  2669. Dr Tony McDonald, Apple Systems Advisor,Newcastle University Computing Service
  2670. Newcastle Upon Tyne, NE1 7RU.      Tel: +44 91 222 8571   Fax: +44 91 222 8765
  2671. http://launchy.ncl.ac.uk/Default.html       Using Eudora 2.0.2
  2672. =========================================================================
  2673. Date:         Fri, 6 May 1994 08:20:22 -0500
  2674. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2675. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2676. From:         King Rhoton <king@ACPUB.DUKE.EDU>
  2677. Subject:      Re: retrieving the hardware address
  2678.  
  2679. >>Along these same lines, how about a ip#->name script or app.  DNS runs on
  2680. >>port 53 (I believe), so I can open a connection, but I can't find
  2681. >>documentation for the data I need to pass to our DNServer to get the name
  2682. >>back.
  2683. >>
  2684. >>King Rhoton                                             king@acpub.duke.edu
  2685. >
  2686. >I will add this to the next version of the TCP/IP Scripting Extension...
  2687.  
  2688. Thanks.  I've just started looking at this, and it looks like a useful
  2689. tool.  If I can get the cname of a machine, then I could plug this osax in
  2690. and my URL redirection pages would intelligently be able to insert the web
  2691. server machine name into the Location: area.  That would certainly be worth
  2692. the shareware fee!
  2693.  
  2694. King Rhoton                                             king@acpub.duke.edu
  2695. =========================================================================
  2696. Date:         Fri, 6 May 1994 08:22:39 -0400
  2697. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2698. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2699. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  2700. Subject:      Re: AppleScript1.1 again
  2701. In-Reply-To:  <no.id> from "John W. Baxter" at May 5, 94 09:45:29 pm
  2702.  
  2703. --John W. Baxter wrote:
  2704. >
  2705. >--Brian V. Hughes wrote:
  2706. >
  2707. >>    Actually, unless you consider the beta System 7.5 Finder "existing",
  2708. >>the only Finder that Finder Scripting Extension works with is Finder 7.1.3.
  2709. >
  2710. >That's odd...it's doing just fine with Finder 7.1.4, here on my 8100.  I
  2711. >recently claimed that the extension works with Finder 7.1.3 and later, and
  2712. >was told that it works back to 7.1.  That's why I hedged.  I don't have the
  2713. >beta System 7.5 Finder (which I understand multi-hand doesn't need the
  2714. >extension).
  2715.  
  2716.     Now that I have taken the time to actually look, I realize that I
  2717. too have Finder 7.1.4 on my 8100. I do know, however, that the Finder
  2718. Scripting Extension doesn't work on Finder's that are older than 7.1.3
  2719. because they don't contain an AETE resource, which is what FSE patches.
  2720.  
  2721. >>    I had though Apple publicly stated that there will be a "scriptable
  2722. >>Finder" in System 7.5?
  2723. >
  2724. >They've also publicly said 7.5 would be out this spring (since corrected).
  2725. >Not to mention the New Printing Architecture a couple of years ago (which
  2726. >seemingly will be out this spring, when QuickDraw GX beats System 7.5 out
  2727. >the door.
  2728.  
  2729.     Ok, that's a good point. I was talking about recent stuff that I was
  2730. told at a PowerPC demo. Apple stated that System 7.5 would be released
  2731. in the Summer and would contain the Drag Manager, the Thread Manager,
  2732. and a full scriptable Finder.
  2733.  
  2734. >That is why I hedged that part (plus I wasn't sure I remembered Apple as
  2735. >the direct source for "Scriptable Finder in 7.5").  There's no reason to
  2736. >expect that it won't be.
  2737.  
  2738.     When it comes to talking about things that don't actually exist yet
  2739. (i.e. System 7.5) hedging one's bets is always a good idea.
  2740.  
  2741. -Hades
  2742. =========================================================================
  2743. Date:         Fri, 6 May 1994 10:36:05 -0500
  2744. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2745. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2746. From:         Eddie Lutz <Edward_M._Lutz@POL.COM>
  2747. Organization: Productivity OnLine   513-333-3111
  2748. Subject:      Re: Two short Finder scripts
  2749.  
  2750. >When I try to run these from OSA Menu, I get an out of memory error
  2751. >(-108).  They work if I launch them directly from the Finder. (Finder
  2752. >7.1.3 with 32 meg).  What am I missing?
  2753.  
  2754. I'm experiencing the same problem.  System 7.1, 8 meg + Ram Doubler.
  2755. ---------------------------------------------------------------------
  2756. Edward M. Lutz, Jr.                Internet: edward_m_lutz@pol.com
  2757. Exodus Software                              elutz@tso.uc.edu
  2758. (513) 522-0011
  2759. (513) 522-3958 FAX                AppleLink: EXODUS
  2760. =========================================================================
  2761. Date:         Fri, 6 May 1994 08:12:51 PDT
  2762. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2763. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2764. From:         Anthony Yen <tyen@NETCOM.COM>
  2765. Subject:      Excel and AppleScript/AppleEvents
  2766.  
  2767. Would I be able to drive Excel using either AppleScript or AppleEvents
  2768. to create graphs and then export the graphs as PICTs into another
  2769. application (specifically 4th Dimension)?
  2770.  
  2771.   -- Anthony Yen <tyen@netcom.com>                           Austin, Texas, USA
  2772. =========================================================================
  2773. Date:         Fri, 6 May 1994 10:50:39 -0800
  2774. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2775. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2776. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  2777. Subject:      Re: AppleScript1.1 again
  2778.  
  2779. For the record, Finder 7.1.2, 7.1.3, 7.1.4 and 7.5 are all the EXACT SAME
  2780. FINDER (with the possible exception of a bug fix or two) - All scripting is
  2781. handled by the "extension".
  2782.  
  2783. Leonard
  2784.  
  2785. -----------------------------------------------------------------------------
  2786. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  2787. Director of Advanced Technology         AppleLink:      MACgician
  2788. Aladdin Systems, Inc.                   GEnie:          MACgician
  2789. =========================================================================
  2790. Date:         Fri, 6 May 1994 15:18:30 -0400
  2791. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2792. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2793. From:         "Ernest A. Freund" <freundea@LINC.CIS.UPENN.EDU>
  2794. Subject:      newbie trying to send to Macintosh Common Lisp
  2795.  
  2796. I have been trying to use AppleScripts to communicate with an AI program
  2797. written in MCL.  My scripts are successful in opening and quitting the
  2798. program using
  2799.  
  2800.         tell application "MCL progname"
  2801.  
  2802.                 (quit)
  2803.  
  2804.         end tell  -- application "MCL progname"
  2805.  
  2806. However, this is the extent of my accomplishments, and really isn't too
  2807. helpful.  The program has handlers for interpreting MCL procedure calls
  2808. send in AE messages, but I was hoping to get it to recognize AS's.
  2809.  
  2810. What would be a good way to do this?  Does an aete resource need to be
  2811. created?  an XCMD?
  2812.  
  2813. I also was trying to send MCL code to it.  MCL uses the prefix notation
  2814. for arithmetic, and commands are contained in parentheses.
  2815.  
  2816. eg.     (print ( + 2 1))
  2817.  
  2818. Script Editor gives error messages when checking syntax.  It wants to put
  2819. these expressions in infix notation.
  2820.  
  2821. I have access to Tao of ... and Goodman's ...
  2822. My copy of Inside Mac Interapp com is in the mail.
  2823.  
  2824. Where should I go from here?
  2825.  
  2826. thanks,
  2827.  
  2828. eaf
  2829.  
  2830. --
  2831. Ernest A. Freund                        freundea@linc.cis.upenn.edu
  2832.  
  2833.  
  2834.   "When the going gets weird, the weird turn pro."     - Raoul Duke
  2835. =========================================================================
  2836. Date:         Fri, 6 May 1994 12:30:39 -0700
  2837. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2838. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2839. From:         Edmund Lai <lai@APPLE.COM>
  2840. Subject:      BBEdit 3.0 supports OSA languages
  2841.  
  2842. The following is a press release from Bare Bones Software. The statment
  2843. that will be of particular interest to this group is
  2844. "Other significant enhancements include support for user scripting via
  2845. AppleScript, Frontier, or any other OSA-compliant scripting system"
  2846.  
  2847. ***********************************************************************
  2848.  
  2849. April 30, 1994
  2850. For Immediate Release
  2851.  
  2852. Contact:
  2853. Rich Siegel
  2854. Bare Bones Software
  2855. 1 Larkspur Way #4
  2856. Natick, MA 01760
  2857. Phone: (508) 651-3561
  2858. Fax: (508) 651-7584
  2859. Internet: bbedit@world.std.com
  2860. CIS: 73051,3255
  2861. AppleLink: BARE.BONES
  2862.  
  2863. Bare Bones Software announces BBEdit 3.0: High Performance Text Editor
  2864. for Power Macintosh(R)
  2865.  
  2866. Natick, MA -- Bare Bones Software, publisher of the premier Macintosh
  2867. text editor, BBEdit 2.5, is readying a new release of BBEdit with
  2868. extended functionality, including support for Power Macintosh(R) systems.
  2869.  
  2870. BBEdit 3.0 will take advantage of native PowerPC(TM) code to greatly
  2871. enhance the speed of common operations such as loading and saving files,
  2872. and text editing, searching and transformation.
  2873.  
  2874. In addition to support for the newest Macintosh line, BBEdit 3.0 will
  2875. feature a unique multi-file Compare facility, which can compare
  2876. individual files, folders, or project documents for differences. When
  2877. comparing folders or projects, BBEdit will display files which are
  2878. common to both folders or projects, as well as files unique to each
  2879. folder or project. Common files can be directly compared for
  2880. differences. As the result of an alliance with SciComp Software, BBEdit
  2881. 3.0 will also feature integrated PopupFuncs(TM) technology, which allows
  2882. quick access to C, C++, or Pascal constructs defined in a source file
  2883. via a popup menu in that file's window.
  2884.  
  2885. Other significant enhancements include support for user scripting via
  2886. AppleScript, Frontier, or any other OSA-compliant scripting system, use
  2887. of Macintosh Drag and Drop in the user interface and for text editing,
  2888. and support for the AOCE "Standard Mail Package", so that users can
  2889. compose, send, and read PowerTalk(R) mail messages from within BBEdit.
  2890.  
  2891. BBEdit 3.0 also features a number of user-interface enhancements,
  2892. included in direct response to user comments and suggestions. In order
  2893. to smooth the transition from other text-editing products to BBEdit,
  2894. Bare Bones Software has included a number of new text transformations,
  2895. including line sorting, generation of C function prototypes, line
  2896. numbering, and organization of delimited words into rows and columns.
  2897.  
  2898. BBEdit 3.0 is slated to ship in early June. An upgrade policy is in
  2899. place for owners of the current 2.5 release, and customers who
  2900. purchase BBEdit 2.5 after May 1, 1994 will be eligible for a free
  2901. upgrade. (A coupon will be included in packages which fill orders
  2902. entered after May 1.)
  2903.  
  2904. --
  2905. Bare Bones Software                     Internet: bbedit@world.std.com
  2906. %====================================================================%
  2907.         Rich Siegel                             Patrick Woolsey
  2908. Principal Software Designer              Director of Quality Assurance
  2909.  
  2910. ***********************************************************************
  2911.  
  2912. /* Disclaimer: All statments and opinions expressed are my own */
  2913. /* Edmund K. Lai                                               */
  2914. /* Apple Computer, MS303-3A                                    */
  2915. /* 20525 Mariani Ave,                                          */
  2916. /* Cupertino, CA 95014                                         */
  2917. /* (408)974-6272                                               */
  2918. zW@h9cOi
  2919. =========================================================================
  2920. Date:         Fri, 6 May 1994 16:09:07 -0400
  2921. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2922. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2923. From:         "George R. Brown" <gbrown@PARTECH.COM>
  2924. Subject:      Problem with Script Tools 1.3
  2925.  
  2926. In looking at the Examples folder of the Script Tools 1.3 set, I got an
  2927. error trying to compile the file "File IO Example", the line below (with AS
  2928. 1.1):
  2929.         set newFilePath to (folder returned of newFile as string) &
  2930.             (name returned of newFile)
  2931.                   ^^^^^^^^
  2932.                   Expected "," but found identifier.
  2933. I put the script extensions from the Additions and Libraries folders into
  2934. the System Folder:Extensions:Scripting Extensions folder...  Is there
  2935. something I'm missing??
  2936.  
  2937.  - gb (george@partech.com)
  2938. =========================================================================
  2939. Date:         Fri, 6 May 1994 17:11:00 -0400
  2940. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2941. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2942. Comments:     Warning -- original Sender: tag was ross@BNR.CA
  2943. From:         ab026@FREENET.CARLETON.CA
  2944. Subject:      Re: AppleScript1.1 again
  2945.  
  2946. Leonard Rosenthol writes:
  2947.  
  2948. >For the record, Finder 7.1.2, 7.1.3, 7.1.4 and 7.5 are all the EXACT SAME
  2949. >FINDER (with the possible exception of a bug fix or two) - All scripting is
  2950. >handled by the "extension".
  2951.  
  2952. If you have Finder 7.1.2 or later, and don't want to spend $130-$150 on the
  2953. AppleScript Scripter's Kit to get a copy of Finder Scripting Extension, you
  2954. can control your Finder through its menu commands using my (free) Menu
  2955. Events extension and scripting addition.  I think you should consider Jon's
  2956. Commands first, though, since it does similar things in a more natural way.
  2957.  
  2958. Because Menu Events is implemented as an extension, the target machine does
  2959. not need AppleScript installed for Menu Events to work.  For example:
  2960.    tell application "Finder" of machine "Chosen Victim" of zone "Oz"
  2961.       Select Menu Item menu id 129 menu item id 5
  2962.    end tell
  2963.  
  2964. Menu Events and the other relevant AWOL Utilities are available from
  2965.    ftp://gaea.kgs.ukans.edu/applescript/addons
  2966.  
  2967. Ross Brown - AWOL Software Productions
  2968. PO Box 24207, 300 Eagleson Road, Kanata, Ontario, Canada K2M 2C3
  2969. publisher of AWOL Utilities - "the best deal in freeware!"
  2970. ab026@freenet.carleton.ca
  2971. =========================================================================
  2972. Date:         Fri, 6 May 1994 19:52:49 EDT
  2973. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2974. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2975. From:         Victor O Jimenez <victoroj@AOL.COM>
  2976. Subject:      ERROR
  2977.  
  2978. I keep getting a type 1 error when i try to do certain scripting
  2979. things...like save a script as an aplication.
  2980.  
  2981. I am new to AppleScript Language......so any help would be nice
  2982. =========================================================================
  2983. Date:         Fri, 6 May 1994 16:54:29 -0700
  2984. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2985. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2986. From:         David Ray <daver@NETCOM.COM>
  2987. Subject:      Re: Problem with Script Tools 1.3
  2988.  
  2989. "George R. Brown" <gbrown@PARTECH.COM> wrote:
  2990.  
  2991. >set newFilePath to (folder returned of newFile as string) &
  2992. >            (name returned of newFile)
  2993. >                  ^^^^^^^^
  2994. >                  Expected "," but found identifier.
  2995.  
  2996. I assume this is preceeded with:
  2997.  
  2998.        set newFile to (choose new file)
  2999.  
  3000. The following will work:
  3001.  
  3002.             set newFilePath to (folder returned of newFile as string) &
  3003.             (filename returned of newFile)
  3004.              ^^^^^^^^
  3005.  
  3006. In general, a good way of debugging this kind of thing is to open a
  3007. new window in script editor and type:
  3008.  
  3009.             return (choose new file)
  3010.  
  3011. This will show you the syntax that returns from 'choose new file', which
  3012. is a list of three items: filename returned (string), replacing (boolean),
  3013. and folder returned (alias).
  3014.  
  3015. -Dave
  3016. =========================================================================
  3017. Date:         Fri, 6 May 1994 18:06:44 -0700
  3018. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3019. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3020. From:         Edmund Lai <lai@APPLE.COM>
  3021. Subject:      A message box script (was Re: AS Interpreter)
  3022.  
  3023. Here is a simple script to give you a modal message box for any application.
  3024. It is meant to be used Leonard Rosenthol's OSA Menu or other script menu
  3025. extension. Compile the script and put it into OSA Menu's universal script
  3026. folder and you can use it anytime. Result is returned to the application's
  3027. current selection if that application supports set selection (e.g.
  3028. Scriptable text editor), otherwise result go to a dialog box. It is
  3029. addressed to the current application. For example here are some statements
  3030. that you can do to the STE.
  3031.  
  3032. 1+1
  3033. Beep 3
  3034. current date as string
  3035. word 4 of window 1
  3036.  
  3037. Here is the script
  3038.  
  3039. set hasAnswer to true
  3040. set userScript to text returned of (display dialog "Enter the script"
  3041. default answer "")
  3042. try
  3043.         set ans to (run script userScript)
  3044. on error errText number errNum
  3045.         set hasAnswer to false
  3046.         if errNum =82 -2763 then
  3047.                 display dialog errText buttons "OK"
  3048.         end if
  3049. end try
  3050. if hasAnswer then
  3051.         try
  3052.                 set selection to ans
  3053.         on error
  3054.                 display dialog ans buttons "OK"
  3055.         end try
  3056. end if
  3057.  
  3058. /* Disclaimer: All statments and opinions expressed are my own */
  3059. /* Edmund K. Lai                                               */
  3060. /* Apple Computer, MS303-3A                                    */
  3061. /* 20525 Mariani Ave,                                          */
  3062. /* Cupertino, CA 95014                                         */
  3063. /* (408)974-6272                                               */
  3064. zW@h9cOi
  3065. =========================================================================
  3066. Date:         Fri, 6 May 1994 19:59:07 -0700
  3067. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3068. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3069. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  3070. Subject:      Re: newbie trying to send to Macintosh Common Lisp
  3071.  
  3072. >I have been trying to use AppleScripts to communicate with an AI program
  3073. >written in MCL.  My scripts are successful in opening and quitting the
  3074. >program using
  3075. >
  3076. >        tell application "MCL progname"
  3077. >
  3078. >                (quit)
  3079. >
  3080. >        end tell  -- application "MCL progname"
  3081. >
  3082. >However, this is the extent of my accomplishments, and really isn't too
  3083. >helpful.  The program has handlers for interpreting MCL procedure calls
  3084. >send in AE messages, but I was hoping to get it to recognize AS's.
  3085. >
  3086. >What would be a good way to do this?  Does an aete resource need to be
  3087. >created?  an XCMD?
  3088.  
  3089. While it is possible to use AppleScript to send events which are not
  3090. described in an application's 'aete' resource, you don't want to...it is
  3091. ugly and error-prone.  It is much easier to prepare your 'aete' resource
  3092. and include it in your application.  Or use UserLand Frontier rather than
  3093. AppleScript, which uses a table of verbs you write in Frontier to define
  3094. the events.  [Given an 'aete', Frontier can make a good start at generating
  3095. the table for you.]
  3096.  
  3097. MPW can also be used to send arbitrary events, with the help of a handy
  3098. tool (whose use I don't know).
  3099.  
  3100. >I also was trying to send MCL code to it.  MCL uses the prefix notation
  3101. >for arithmetic, and commands are contained in parentheses.
  3102. >
  3103. >eg.     (print ( + 2 1))
  3104. >
  3105. >Script Editor gives error messages when checking syntax.  It wants to put
  3106. >these expressions in infix notation.
  3107.  
  3108. You will probably want to send your MCL source code as a string.  Like this:
  3109.    "(print ( + 2 1))"
  3110.  
  3111. If you do that, Script Editor will leave it alone.  It seems likely that
  3112. your handler in your application would prefer to receive a string, anyhow.
  3113. There's a standard event set aside for this job...in AppleScript it would
  3114. look like this:
  3115.  
  3116.     do script "(print ( + 2 1))"
  3117.  
  3118. The event class is 'misc', and the event id is 'dosc'.  According to the AE
  3119. Registry, the direct object can be a string which is the script to execute,
  3120. or an alias to a file which contains the text to execute.
  3121.  
  3122. Better applications (QuarkXPress, for one) have recently extended this (a
  3123. good idea) so that a second parameter if present indicates a scripting
  3124. language to use in compiling the text found in the first parameter (so that
  3125. instead of MCL code, you could compile and execute AppleScript, Frontier,
  3126. QuikScript, or other scripting source code).  XPress also allows a
  3127. pre-compiled Open Scripting Architecture script to be sent, and executes
  3128. that.
  3129.  
  3130. All those additions to do script sound tricky, but can be done with very
  3131. little code.
  3132.  
  3133.   ---John
  3134.  
  3135.  
  3136. --
  3137. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  3138. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  3139. =========================================================================
  3140. Date:         Sat, 7 May 1994 08:49:16 -0700
  3141. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3142. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3143. From:         Jon Pugh <jonpugh@NETCOM.COM>
  3144. Subject:      Re: Finder Scripting Extension
  3145.  
  3146. >    Now that I have taken the time to actually look, I realize that I
  3147. >too have Finder 7.1.4 on my 8100. I do know, however, that the Finder
  3148. >Scripting Extension doesn't work on Finder's that are older than 7.1.3
  3149. >because they don't contain an AETE resource, which is what FSE patches.
  3150.  
  3151. Wrongo, Mary Lou.
  3152.  
  3153. The Finder Scripting Extension was written to work with the Bungee Finder,
  3154. which was the reference Finder for a number of system extensions, such as
  3155. AOCE (PowerTalk) and QuickDraw GX.  Finders prior to Bungee required a
  3156. coordinated set of extensions (Network, File Sharing, etc.) since each
  3157. extension had to know about specific entry points in the Finder which moved
  3158. over several releases.  Bungee fixed this (among other things), probably by
  3159. standardizing the entry points in a jump table.  At any rate, Greg Anderson
  3160. (principle author of FSE & AutoGuest) told me (and others) that he could
  3161. make it work with 7.0 and 7.01 Finders too, presumably because their entry
  3162. points were known and immutable.  I haven't tested this theory though,
  3163. since I haven't used either of them for quite some time (since 7.1 to be
  3164. precise).
  3165.  
  3166. So, Bungee Finder is 7.1.3 on.  I don't know if it will have all the
  3167. extensions rolled into one file for 7.5, but I doubt it.  It will more
  3168. likely ship with the extension, just like it ships with the Network and
  3169. other extensions.
  3170.  
  3171. >    When it comes to talking about things that don't actually exist yet
  3172. >(i.e. System 7.5) hedging one's bets is always a good idea.
  3173.  
  3174. Hear hear.
  3175.  
  3176. Jon
  3177.  
  3178. PS
  3179.  
  3180. > return (choose new file)
  3181.  
  3182. The return () is unneeded.  Every AppleScript statement has a value and the
  3183. last statement is the value of the function.  So use:
  3184.  
  3185.   choose new file
  3186.  
  3187. instead.
  3188. =========================================================================
  3189. Date:         Sat, 7 May 1994 11:52:19 U
  3190. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3191. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3192. From:         Will Cate <prubank!qm!wcate@UUNET.UU.NET>
  3193. Subject:      Re: FWD>BBEdit 3.0 supports
  3194.  
  3195.         Reply to:   RE>FWD>BBEdit 3.0 supports OSA lan
  3196. What will be the "new purchase" price?  I'd like to order 5 copies ASAP.
  3197. Thanks.
  3198.  
  3199. Will Cate, Programming Manager
  3200. The Prudential Bank
  3201.  
  3202. wcate@prubank.com
  3203. =========================================================================
  3204. Date:         Sat, 7 May 1994 13:07:59 -0500
  3205. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3206. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3207. From:         Kelly A Campbell <camel@CIS.KSU.EDU>
  3208. Subject:      Refferencing an Application by its id type
  3209.  
  3210. Does anyone know how to refer to an application by its 4 letter type code?
  3211. Such as instead of tell application "Scriptable Text Editor"
  3212. is there a way to do something like tell application quil ....
  3213. (quil is the creator code for the text editor)
  3214.  
  3215. I'm wondering about this because the name of the app could be changed, and
  3216. I think this would be a better way to refer to an application, plus
  3217. you wouldn't have to know exactly where on the disk the application is.
  3218.  
  3219. Thanks,
  3220. Kelly
  3221. --
  3222. ,---------------------------------------------------------.
  3223. | Kelly A. Campbell      |       Kansas State University  |
  3224. | camk@ksu.ksu.edu       |       Student Publications     |
  3225. | camel@cis.ksu.edu      |       Macintosh Tech Support   |
  3226. `---------------------------------------------------------'
  3227. =========================================================================
  3228. Date:         Sat, 7 May 1994 17:53:01 -0700
  3229. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3230. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3231. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  3232. Subject:      Re: Refferencing an Application by its id type
  3233.  
  3234. >Does anyone know how to refer to an application by its 4 letter type code?
  3235. >Such as instead of tell application "Scriptable Text Editor"
  3236. >is there a way to do something like tell application quil ....
  3237. >(quil is the creator code for the text editor)
  3238. >
  3239. >I'm wondering about this because the name of the app could be changed, and
  3240. >I think this would be a better way to refer to an application, plus
  3241. >you wouldn't have to know exactly where on the disk the application is.
  3242.  
  3243. As long as you are dealing with compiled scripts, don't worry too much
  3244. about the name issue.  AppleScript in general (and perhaps Script Editor
  3245. even more so, perhaps not) works very hard (too hard in some cases) to keep
  3246. up with you when you make changes.
  3247.  
  3248. Try this experiment.  Compile and save (as an application) a script for
  3249. "Scriptable Text Editor".  Make things harder:  quit Script Editor.  Rename
  3250. "Scriptable Text Editor" to its right and proper name (which Apple seems
  3251. not to have used for trademark reasons):  "Quill".  Make things harder
  3252. still:  restart your Mac.
  3253.  
  3254. Now run that script in Script Editor.  It will run fine.  Open the script
  3255. in Script Editor.  It will refer to application "Quill".  Moving the app
  3256. shouldn't hurt much, either, unless you move it cross volume...Script
  3257. Editor may ask for help in that case if the app isn't running when it first
  3258. needs to know.
  3259.  
  3260. [I said that something AppleScript works too hard at this based on a
  3261. sequence like this:  have an app running under the Think Debugger.  Write a
  3262. script which addresses it by name.  Close the script and quit Script
  3263. Edtior.  Quit the application and TPM (and the debugger).  Open the script.
  3264. [Don't have anything important running on your Mac when you do this.]  If
  3265. I remember the sequence correctly, the result is that AppleScript attempts
  3266. to launch the TPM project file as if it were an application, which results
  3267. in a crash.
  3268.  
  3269.   --John
  3270.  
  3271. --
  3272. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  3273. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  3274. =========================================================================
  3275. Date:         Sun, 8 May 1994 00:04:58 -0500
  3276. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3277. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3278. From:         Fred Terry <pfterry@LKS.CSI.COM>
  3279. Subject:      Frontier 3.03 updater
  3280.  
  3281. Just as Doug Baron promised, there is a 3.03 version of Frontier
  3282. available. You'll find it on gaea in
  3283.  
  3284. ftp://gaea.kgs.ukans.edu/frontier/FromUserland/303UpgradInstaller.hqx
  3285.  
  3286. I've included a portion of the readme file so you can see what
  3287. has changed. Enjoy.
  3288.  
  3289. pf
  3290.  
  3291.  
  3292.  
  3293. Frontier 3.0.3 Upgrader
  3294. -----------------------
  3295.  
  3296. This package upgrades UserLand Frontier 3.0, 3.0.1 or 3.0.2 to version
  3297. 3.0.3. If you have Frontier 2.x and would like to upgrade to 3.0.3, send
  3298. an email message to Carolyn Franz at 76703,4047 for ordering info, or
  3299. read UPGRAD.TXT in this library.
  3300.  
  3301. There are no new features in 3.0.3; it fixes an object specifier problem
  3302. introduced in 3.0.2 and includes the latest Thread Manager extension from
  3303. Apple. Version 3.0.2 added expanded support of array operations, while
  3304. version 3.0.1 improved compatibility with HyperCard 2.2 and RAM Doubler
  3305. 1.0. All other changes since 3.0 address problems and bugs reported by
  3306. users.
  3307.  
  3308. Please review the list of changes before installing 3.0.3. If you're not
  3309. experiencing any problems with Frontier, you may not need to install this
  3310. update. However, if you use scripts created by other users, upgrading is
  3311. recommended to assure compatibility.
  3312.  
  3313.  
  3314. Changes in 3.0.3
  3315. ----------------
  3316.  
  3317. with statement
  3318. *  Changed the scoping rules for object specifiers used in with
  3319. statements. Version 3.0.2 prevented object specifiers in with statements
  3320. from unexpectedly affecting specifiers in externally-called scripts. But
  3321. in some cases, in particular when coercing a string4 value to be an
  3322. object specifier (for a property), it is desirable and necessary to take
  3323. the with statement of the calling script into account. Version 3.0.3
  3324. handles these cases separately to achieve the expected behavior. Object
  3325. model scripts that began to generate errors after upgrading to 3.0.2
  3326. should work again with 3.0.3.
  3327.  
  3328. Thread Manager 2.0.1
  3329. *  Apple recently released a new version of the Thread Manager that fixes
  3330. a QuickDraw bug on some machines in low stack space conditions, and an
  3331. occasional crash when quitting. The new version is included in this
  3332. package.
  3333.  
  3334. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  3335. Fred Terry  Cadence Design Systems  pfterry@lks.csi.com  +1 913 841 1283
  3336. =========================================================================
  3337. Date:         Sun, 8 May 1994 15:56:15 +0800
  3338. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3339. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3340. From:         Peter N Lewis <peter.lewis@INFO.CURTIN.EDU.AU>
  3341. Subject:      PowerMac and the AS 1.1 file access osax
  3342.  
  3343. Hi all,
  3344.  
  3345. I just tried my download files script on my PowerMac and exploded big time.
  3346. I narrowed it down to just this:
  3347.  
  3348. set umichaddr to "archie.au:/micros/mac/umich/"
  3349. set infomacaddr to "archie.au:/micros/mac/info-mac/"
  3350. set theinput to "rocky:desktop folder:download"
  3351.  
  3352. set thedata to ""
  3353. set rn to open for access file theinput with write permission
  3354. try
  3355.         set thedata to read rn
  3356. on error
  3357. end try
  3358. close access rn
  3359.  
  3360. Basically, it looks very much like the file access stuff is broken on the
  3361. PowerMac.  I didn't narrow it down any further (I was kind of pissed off
  3362. with it after spending several hours reinstalling AS a dozen times).
  3363.  
  3364. Anyway, if anyone would like to confirm this as failing, so people know to
  3365. stay awya from it, that'd be good.  But it totally trashes my mac (reboot
  3366. time), so attempt with caution.
  3367.    Peter.
  3368. PS: I'm not on this mailing list, but I have friends who watch for relevent
  3369. stuff, so they will forward anything useful to me.
  3370.  
  3371. Peter N Lewis <peter.lewis@info.curtin.edu.au>       Ph: +61 9 368 2055
  3372. =========================================================================
  3373. Date:         Mon, 9 May 1994 15:01:43 +0100
  3374. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3375. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3376. From:         Marco Strehler <strehler@FVMED.UNIZH.CH>
  3377. Subject:      Eudora: strange AppleScript behavior?
  3378.  
  3379. Eudora has a strange AppleScript behavior:
  3380. "MailboxType", "WasteSpace" and "Name" are all read only properties of the
  3381. Class "Mailbox" (according the aete resource). But the Property "Name"
  3382. doesn't work.
  3383. I'm using AS 1.0, Eudora 1.4.1 and System 7.1.
  3384.  
  3385. Can somebody give me a hint?
  3386.  
  3387. tell application "Eudora1.4.1"
  3388.  
  3389.         get MailboxType of first Mailbox of Mail Folder ""
  3390.                 -- this works: result 6220 (the IN-Mailbox)
  3391.         get WasteSpace of first Mailbox of Mail Folder ""
  3392.                 -- this works: an integer is returned
  3393.         get Name of first Mailbox of Mail Folder ""
  3394.                 -- THIS DOESN'T WORK. Error text:
  3395.                 -- << Eudora1.4.1 got an error:
  3396.                 -- Can't get Name of Mailbox 1 of Mail Folder \"\". >>
  3397.  
  3398. end tell
  3399.  
  3400.  
  3401.  
  3402. *
  3403. * Marco Strehler, Im Dreispitz 21, 8152 Glattbrugg (Switzerland)
  3404. * ++41 (0)1 810 27 03
  3405. * strehler@fvmed.unizh.ch
  3406. *
  3407. =========================================================================
  3408. Date:         Sun, 8 May 1994 09:11:09 -0700
  3409. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3410. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3411. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  3412. Subject:      Re: Eudora: strange AppleScript behavior?
  3413.  
  3414. >Eudora has a strange AppleScript behavior:
  3415. >"MailboxType", "WasteSpace" and "Name" are all read only properties of the
  3416. >Class "Mailbox" (according the aete resource). But the Property "Name"
  3417. >doesn't work.
  3418. >I'm using AS 1.0, Eudora 1.4.1 and System 7.1.
  3419. >
  3420. >Can somebody give me a hint?
  3421. >
  3422. >tell application "Eudora1.4.1"
  3423. >
  3424. >        get MailboxType of first Mailbox of Mail Folder ""
  3425. >                -- this works: result 6220 (the IN-Mailbox)
  3426. >        get WasteSpace of first Mailbox of Mail Folder ""
  3427. >                -- this works: an integer is returned
  3428. >        get Name of first Mailbox of Mail Folder ""
  3429. >                -- THIS DOESN'T WORK. Error text:
  3430. >                -- << Eudora1.4.1 got an error:
  3431. >                -- Can't get Name of Mailbox 1 of Mail Folder \"\". >>
  3432. >
  3433. >end tell
  3434.  
  3435. I see the same effect with Eudora 2.0.2.  However, the Apple event handling
  3436. in Eudora seems to be fine, in that the equivalent Frontier code:
  3437.  
  3438. with objectModel, eudora, eventInfo
  3439.     core.get (id, mailfolder[""].mailbox[1].name)
  3440.  
  3441. correctly produces the name "In".  I'll have a look at the 'aete' resource
  3442. in Eudora (not used by Frontier).
  3443.  
  3444.    --John
  3445.  
  3446. --
  3447. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  3448. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  3449. =========================================================================
  3450. Date:         Sun, 8 May 1994 10:13:34 -0700
  3451. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3452. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3453. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  3454. Subject:      Re: Eudora: strange AppleScript behavior?
  3455.  
  3456. >Eudora has a strange AppleScript behavior:
  3457. >"MailboxType", "WasteSpace" and "Name" are all read only properties of the
  3458. >Class "Mailbox" (according the aete resource). But the Property "Name"
  3459. >doesn't work.
  3460. >I'm using AS 1.0, Eudora 1.4.1 and System 7.1.
  3461. >
  3462. >Can somebody give me a hint?
  3463. >
  3464. >tell application "Eudora1.4.1"
  3465. >
  3466. >        get MailboxType of first Mailbox of Mail Folder ""
  3467. >                -- this works: result 6220 (the IN-Mailbox)
  3468. >        get WasteSpace of first Mailbox of Mail Folder ""
  3469. >                -- this works: an integer is returned
  3470. >        get Name of first Mailbox of Mail Folder ""
  3471. >                -- THIS DOESN'T WORK. Error text:
  3472. >                -- << Eudora1.4.1 got an error:
  3473. >                -- Can't get Name of Mailbox 1 of Mail Folder \"\". >>
  3474. >
  3475. >end tell
  3476.  
  3477. As said before, the equivalent Frontier script works.  That led me to look
  3478. into Eudora's 'aete' resource ("Dictionary").
  3479.  
  3480. And I found that the Name property for a mailbox is 'pNam' rather than
  3481. 'pnam' which (a) is the Registry definition, and (b) is what Frontier uses
  3482. (because of how the objectModel table in Frontier is set up).  When I
  3483. induced Frontier to ask for the 'pNam' property of a mailbox, the same
  3484. error was returned as AppleScript receives.
  3485.  
  3486. So...I changed [in Eudora's 'aete' resource] the code for the Name property
  3487. of a mailbox to 'pnam' and...
  3488.    there was no change in behavior.
  3489.  
  3490. I went back and changed the Name property of EVERY class in Eudora which
  3491. has one from 'pNam' to 'pnam' and...
  3492.    get Name of first Mailbox of Mail Folder ""
  3493. now works fine.
  3494.  
  3495. Conclusions:
  3496. 1.  Eudora's 'aete' needs to be changed as above.
  3497.  
  3498.     I will not post the changed 'aete', since (a) I don't have permission,
  3499. and (b) I don't know what versions of Eudora other than 2.0.2 it would
  3500. apply to.  Given the aete editor stack (b4 is the current version) or
  3501. another suitable tool (MPW, Resourcerer, ...) you can make the change
  3502. yourself.
  3503.  
  3504. 2.  AppleScript 1.1 appears to get confused if the same property name has
  3505. more than one code value in a given 'aete'.  When designing applications,
  3506. don't do that.  [I suspect that if I had changed the Name property of only
  3507. the first class which has one...or only the last class...that would have
  3508. been sufficient.]
  3509.  
  3510. I'll await Jon Pugh's comment before I send off a report to APPLE.BUGS,
  3511. since there may well have been a conscious decision to design AppleScript
  3512. this way.
  3513.  
  3514.    --John
  3515.  
  3516. --
  3517. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  3518. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  3519. =========================================================================
  3520. Date:         Sun, 8 May 1994 10:59:24 -0700
  3521. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3522. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3523. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  3524. Subject:      Re: PowerMac and the AS 1.1 file access osax
  3525.  
  3526. >I just tried my download files script on my PowerMac and exploded big time.
  3527. >I narrowed it down to just this:
  3528. >
  3529. >set umichaddr to "archie.au:/micros/mac/umich/"
  3530. >set infomacaddr to "archie.au:/micros/mac/info-mac/"
  3531. >set theinput to "rocky:desktop folder:download"
  3532. >
  3533. >set thedata to ""
  3534. >set rn to open for access file theinput with write permission
  3535. >try
  3536. >        set thedata to read rn
  3537. >on error
  3538. >end try
  3539. >close access rn
  3540. >
  3541. >Basically, it looks very much like the file access stuff is broken on the
  3542. >PowerMac.  I didn't narrow it down any further (I was kind of pissed off
  3543. >with it after spending several hours reinstalling AS a dozen times).
  3544. >
  3545. >Anyway, if anyone would like to confirm this as failing, so people know to
  3546. >stay awya from it, that'd be good.  But it totally trashes my mac (reboot
  3547. >time), so attempt with caution.
  3548.  
  3549. Hi, Peter....
  3550.    Yes...the file access Scripting Addition (from Apple) seems to be broken
  3551. on my 8100, also.  I now have a new folder, named "Scripting Additions
  3552. (broken)".  Thanks for the report...I wouldn't have noticed, since I do
  3553. complex things in Frontier rather than AppleScript.
  3554.  
  3555.    I left out the Anarchie usage, using a script like this
  3556.  
  3557. set theinput to "Vashon:desktop folder:C programming positions"
  3558.  
  3559. set thedata to ""
  3560. set rn to open for access file theinput with write permission
  3561. try
  3562.     set thedata to read rn
  3563. on error
  3564.     beep
  3565. end try
  3566. close access rn
  3567. the data
  3568.  
  3569. In two runs, the first initially appeared to go OK, but left a time bomb
  3570. behind (I had not noticed a leading space on the file name, and a new empty
  3571. file appeared...Finder crashed when I tried to trash that file).  The
  3572. second run left me with an all-gray screen, and the interrupt switch
  3573. non-working...the restart switch did its job.  No damage done.
  3574.  
  3575. Time for a love letter to APPLE.BUGS, I guess (not from me, though), unless
  3576. someone who has purchased the right to talk to whatever DTS has been
  3577. renamed want to pursue it.
  3578.  
  3579. --John (who guesses that we can eliminate the backward direction of the
  3580.         Coriolis effect at Peter's machine as part of the problem)
  3581.  
  3582. --
  3583. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  3584. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  3585. =========================================================================
  3586. Date:         Sun, 8 May 1994 21:45:51 -0700
  3587. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3588. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3589. From:         Jon Pugh <jonpugh@NETCOM.COM>
  3590. Subject:      Re: osaxen and aetes
  3591.  
  3592. >2.  AppleScript 1.1 appears to get confused if the same property name has
  3593. >more than one code value in a given 'aete'.  When designing applications,
  3594. >don't do that.  [I suspect that if I had changed the Name property of only
  3595. >the first class which has one...or only the last class...that would have
  3596. >been sufficient.]
  3597. >
  3598. >I'll await Jon Pugh's comment before I send off a report to APPLE.BUGS,
  3599. >since there may well have been a conscious decision to design AppleScript
  3600. >this way.
  3601.  
  3602. I don't really know if it was so much intentional as just the way it worked
  3603. out given the schedule pressure.
  3604.  
  3605. John's right though.  All properties are thrown into a bucket and
  3606. AppleScript allows you to use any property with any object.  It does no
  3607. checking.  I don't recall if it uses the first or the last occurance, but
  3608. that behavior shouldn't be relied on anyhow.  If you are designing an aete,
  3609. you should never have a term with more than 1 code or a code that is used
  3610. for more than 1 term.  You can have the same term in different places
  3611. (notably, properties and keywords), but they should match exactly.
  3612.  
  3613. As for scope, properties are global to the application's tell block.
  3614. Events and keywords are scoped only to the event they are in.
  3615.  
  3616. As for Eudora's aete error, this is the reason you should do your aete in
  3617. Rez and use the same constants that you use in your code.  That way they
  3618. match and this kind of bug doesn't occur.  I know Rez isn't pretty, but if
  3619. you can code C then you can write Rez.  Don't be a sissy.  ;)
  3620.  
  3621.  
  3622. >>Basically, it looks very much like the file access stuff is broken on the
  3623. >>PowerMac.  I didn't narrow it down any further (I was kind of pissed off
  3624. >>with it after spending several hours reinstalling AS a dozen times).
  3625. >>
  3626. >>Anyway, if anyone would like to confirm this as failing, so people know to
  3627. >>stay awya from it, that'd be good.  But it totally trashes my mac (reboot
  3628. >>time), so attempt with caution.
  3629. >
  3630. >Hi, Peter....
  3631. >   Yes...the file access Scripting Addition (from Apple) seems to be broken
  3632. >on my 8100, also.  I now have a new folder, named "Scripting Additions
  3633. >(broken)".  Thanks for the report...I wouldn't have noticed, since I do
  3634. >complex things in Frontier rather than AppleScript.
  3635.  
  3636. Apparently there is an unoffical bug fix coming up which will repair some
  3637. of the problems discovered in the various osaxen.  I don't know if this one
  3638. is fixed or even known, but the few I have found have already been fixed.
  3639. I also don't know what the schedule of this release is, but I'll check on
  3640. that too.
  3641.  
  3642. Jon
  3643. =========================================================================
  3644. Date:         Sun, 8 May 1994 21:59:22 -0700
  3645. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3646. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3647. From:         Jon Pugh <jonpugh@NETCOM.COM>
  3648. Subject:      Re: Referencing an Application by its id type
  3649.  
  3650. >As long as you are dealing with compiled scripts, don't worry too much
  3651. >about the name issue.  AppleScript in general (and perhaps Script Editor
  3652. >even more so, perhaps not) works very hard (too hard in some cases) to keep
  3653. >up with you when you make changes.
  3654.  
  3655. Actually, this is all done by the Alias Manager.  When you choose an
  3656. application in a tell statement, AppleScript simply saves an alias.  That
  3657. explains all the capabilities and limitations associated with moving
  3658. scripts to other computers.  They behave just like aliases do, except that
  3659. when AppleScript can't resolve an alias it looks for a running process and
  3660. if it can't find the right one then it asks the user where the application
  3661. is.
  3662.  
  3663. That means that you can avoid being asked by simply making sure the needed
  3664. programs are already running before you open or run a script.
  3665.  
  3666. Jon
  3667. =========================================================================
  3668. Date:         Sun, 8 May 1994 22:39:43 -0700
  3669. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3670. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3671. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  3672. Subject:      Re: Referencing an Application by its id type
  3673.  
  3674. >>As long as you are dealing with compiled scripts, don't worry too much
  3675. >>about the name issue.  AppleScript in general (and perhaps Script Editor
  3676. >>even more so, perhaps not) works very hard (too hard in some cases) to keep
  3677. >>up with you when you make changes.
  3678. >
  3679. >Actually, this is all done by the Alias Manager.  When you choose an
  3680. >application in a tell statement, AppleScript simply saves an alias.  That
  3681. >explains all the capabilities and limitations associated with moving
  3682. >scripts to other computers.  They behave just like aliases do, except that
  3683. >when AppleScript can't resolve an alias it looks for a running process and
  3684. >if it can't find the right one then it asks the user where the application
  3685. >is.
  3686. >
  3687. >That means that you can avoid being asked by simply making sure the needed
  3688. >programs are already running before you open or run a script.
  3689. >
  3690.  
  3691. Jon,
  3692.  
  3693.    That's essentially what I thought, except that it doesn't quite explain
  3694. (to me) this sequence:
  3695.  
  3696. 1.  Compile a script while program Proj.pi is running under the Think debugger.
  3697.  
  3698. 2.  With the project not running, try to open/run (I don' recall which...I
  3699. can look up the message traffic if it actually matters) the script.  Crash,
  3700. and it became clear (after some playing with MacsBug, that the project file
  3701. had been dealt with as if it were an application.
  3702.  
  3703. 3.  [This is the part that suggests that the signature is kept around
  3704. somewhere].  Open/run the script again, and Think Project Manager is
  3705. launched.  The only reason I can see for THAT effect is that they share the
  3706. creator 'KAHL'.
  3707.  
  3708.    --John
  3709.  
  3710. --
  3711. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  3712. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  3713. =========================================================================
  3714. Date:         Mon, 9 May 1994 08:15:49 -0400
  3715. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3716. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3717. From:         Graham Heyes <heyes@DAHP1.CEBAF.GOV>
  3718. Subject:      Making an app scriptable...
  3719.  
  3720. Hi folks,
  3721.         I am trying to write a simple scriptable application and falling down
  3722. somewhere along the way. I wrote an application "Fred" which is set up to 
  3723. accept
  3724. apple events. The idea is that a little window shows a picture of a little
  3725. man/woman who's expression and gestures can be changed from a script.
  3726.  
  3727. I can send an event by using the script
  3728.  
  3729.  
  3730. Which works perfectly and makes the little character wave. Now I have it all
  3731. working I tried to write an aete resource to make the think scriptable. I used
  3732. the AETEEditor hypercard stack, made a suite called GEST then added in a class
  3733. GEST and an event wave. When I output the resource and use the script editor to
  3734. look at the dictionary of "Fred" I see all my additions but when I change the
  3735. script to
  3736.  
  3737. tell application "fred"
  3738.         activate
  3739.         wave
  3740. end tell
  3741.  
  3742. not a lot happens except the dreaded "applicatiopn Fred does not understand
  3743. wave..." dialog pops up. I tried a few obvious things like swapping the event
  3744. and class IDs in case I had them the wrong way round but that has no effect.
  3745. Anyone got any idea what is going wrong?
  3746.  
  3747.                 Graham
  3748.  
  3749. -<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-
  3750. Graham Heyes,CEBAF,12000 Jefferson Ave,Newport News,VA 23606,Tel:(804) 249-7030
  3751. =========================================================================
  3752. Date:         Mon, 9 May 1994 13:05:37 +0000
  3753. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3754. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3755. From:         Borre Ludvigsen <borrel@MASHALLAH.LUDVIGSEN.DHHALDEN.NO>
  3756. Subject:      Webstat
  3757.  
  3758. Has anyone been successful in starting the Webstat application and picking
  3759. up its html results?
  3760.  
  3761. - Barre Ludvigsen
  3762. =========================================================================
  3763. Date:         Mon, 9 May 1994 09:10:37 -0400
  3764. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3765. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3766. From:         John Schettino <js12@GTE.COM>
  3767. Subject:      Re: Eudora: strange AppleScript behavior?
  3768.  
  3769. >Eudora has a strange AppleScript behavior:
  3770. >"MailboxType", "WasteSpace" and "Name" are all read only properties of the
  3771. >Class "Mailbox" (according the aete resource). But the Property "Name"
  3772. >doesn't work.
  3773. >I'm using AS 1.0, Eudora 1.4.1 and System 7.1.
  3774. >
  3775. >Can somebody give me a hint?
  3776. >
  3777. >tell application "Eudora1.4.1"
  3778. >
  3779. >        get MailboxType of first Mailbox of Mail Folder ""
  3780. >                -- this works: result 6220 (the IN-Mailbox)
  3781. >        get WasteSpace of first Mailbox of Mail Folder ""
  3782. >                -- this works: an integer is returned
  3783. >        get Name of first Mailbox of Mail Folder ""
  3784. >                -- THIS DOESN'T WORK. Error text:
  3785. >                -- << Eudora1.4.1 got an error:
  3786. >                -- Can't get Name of Mailbox 1 of Mail Folder \"\". >>
  3787. >
  3788. >end tell
  3789. >
  3790.  
  3791. I use this (with Eudora 2.0.2, but it should work for you!)
  3792. -- get list of mailbox names
  3793. set mblist to {}
  3794. set AppleScript's text item delimiters to {":"}
  3795. tell application "Eudora 2.0.2"
  3796.         activate
  3797.         -- get the name of each of the mailboxes I have in the system
  3798.  
  3799.         repeat with idx from 1 to count mailbox of mail folder ""
  3800.                 set mbname to (fileSpec of mailbox idx of mail folder "")
  3801.                 set end of mblist to (last text item of (mbname as string))
  3802.         end repeat
  3803. end tell
  3804. mblist -- just to see if it worked
  3805.  
  3806. - john
  3807.  
  3808. -----------------------------------------
  3809. js12@gte.com             GTE Laboratories
  3810. John Schettino                Waltham, MA
  3811. =========================================================================
  3812. Date:         Mon, 9 May 1994 11:40:34 EST
  3813. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3814. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3815. From:         "Andrew Brennan, LRC Manager" <brennan@HAL.HAHNEMANN.EDU>
  3816. Subject:      Re: AppleScript1.1 again
  3817.  
  3818. >
  3819. > >I don't know of other sources, which doesn't mean there aren't other 
  3820. sources.
  3821. >
  3822. >     Aside from the person who said he convinced Apple to send it to him,
  3823. > the only other way to get the Finder Scripting Extension is to buy the
  3824. > AppleScript Scripter's Kit. Costs about $130-$150 from MacConnection and
  3825. > other popular mail-order houses.
  3826. >
  3827.     While it doesn't include the Finder Scripting Extension, MacHTTP 1.3 is
  3828.     currently on the net with AppleScript 1.1 included.  Try this URL :
  3829.  
  3830.            ftp://www.uth.tmc.edu/public/mac/MacHTTP/machttp.sit.hqx
  3831.  
  3832.     I'm not exactly sure how the legal aspects of this work, but it's one
  3833.     way to upgrade ...
  3834.  
  3835.     andrew.  (brennan@hal.hahnemann.edu)
  3836.     <A HREF=http://ubu.hahnemann.edu/misc/aab.html>andrew.</A>
  3837. =========================================================================
  3838. Date:         Mon, 9 May 1994 12:26:17 EDT
  3839. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3840. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3841. From:         "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
  3842. Subject:      Easy View
  3843.  
  3844. Has anyone tried making an Easy View view for the digests of this list? If
  3845. so, drop me or Fred a note so that we can put it up on gaea for everyone's
  3846. benefit.
  3847.  
  3848. Thanks
  3849.  
  3850. -A
  3851. =========================================================================
  3852. Date:         Mon, 9 May 1994 13:53:33 -0500
  3853. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3854. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3855. From:         Fred Terry <pfterry@LKS.CSI.COM>
  3856. Subject:      digests in Easy View format
  3857.  
  3858. Several people have expressed an interest in the digests in Easy View format.
  3859. Brian Hughes has been good enough to provide us with his copy. You'll find it
  3860. in
  3861.  
  3862. ftp://gaea.kgs.ukans.edu/applescript/docs/macscrpt_digest_ev.hqx
  3863.  
  3864. Many thanks, Brian!
  3865.  
  3866. pf
  3867.  
  3868.  
  3869. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  3870. Fred Terry  Cadence Design Systems  pfterry@lks.csi.com  +1 913 841 1283
  3871. =========================================================================
  3872. Date:         Mon, 9 May 1994 15:49:11 -0400
  3873. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3874. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3875. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  3876. Subject:      Re: digests in Easy View format
  3877. In-Reply-To:  <no.id> from "Fred Terry" at May 9, 94 01:53:33 pm
  3878.  
  3879. --Fred Terry wrote:
  3880. >
  3881. >Several people have expressed an interest in the digests in Easy View format.
  3882. >Brian Hughes has been good enough to provide us with his copy. You'll find it
  3883. >in
  3884. >
  3885. >ftp://gaea.kgs.ukans.edu/applescript/docs/macscrpt_digest_ev.hqx
  3886. >
  3887. >Many thanks, Brian!
  3888.  
  3889.     You're welcome, of course. For those of you who like to do things on
  3890. your own, here's how to do this: First, you need to create an Easy View
  3891. file that uses the Mail format (you can just use a copy of the Internet
  3892. Mail file that comes with Easy View, this is what I did ;), open the
  3893. file up, and choose Preferences from the Edit menu while you hold down
  3894. the option key. Then all you have to do is chagen the "Mail Start" field
  3895. from "From" to "Date:" (without the quotes of course). Then save the
  3896. easy view file and you're done. Pretty simple, huh?
  3897.     You can also change the chapter display options while you have the
  3898. Preferences dialog open.  The file that I uploaded has been set to
  3899. "Sender*Subject" because this is what I like to use. There are a couple
  3900. of other choices for your own personal tastes. One note: if you make a
  3901. change to this option with a file already idexed by Easy View, you will
  3902. have to re-index the file to see the change. To do this, all you do is
  3903. go to the Modify View item under the File menu. When the dialog box
  3904. comes up, you move all indexed files out of the View, and then, move
  3905. them back in.
  3906.  
  3907. -Hades
  3908. =========================================================================
  3909. Date:         Mon, 9 May 1994 14:18:06 -0800
  3910. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3911. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3912. From:         Robert Mark <rmark@ISDMNL.WR.USGS.GOV>
  3913. Subject:      Re: digests in Easy View format
  3914.  
  3915. >--Fred Terry wrote:
  3916. >>
  3917. >>Several people have expressed an interest in the digests in Easy View format.
  3918. >>Brian Hughes has been good enough to provide us with his copy. You'll find it
  3919. >>in
  3920. >>
  3921. >>ftp://gaea.kgs.ukans.edu/applescript/docs/macscrpt_digest_ev.hqx
  3922. >>
  3923. >>Many thanks, Brian!
  3924. >
  3925.  
  3926. Where do we get Easy View?
  3927. =========================================================================
  3928. Date:         Mon, 9 May 1994 16:34:43 -0500
  3929. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3930. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3931. From:         Fred Terry <pfterry@LKS.CSI.COM>
  3932. Subject:      Re: digests in Easy View format
  3933.  
  3934. Robert Mark asked.....
  3935.  
  3936. >>>Several people have expressed an interest in the digests in Easy View
  3937. format.
  3938. >>>Brian Hughes has been good enough to provide us with his copy. You'll find
  3939. it
  3940. >>>in
  3941. >>>
  3942. >>>ftp://gaea.kgs.ukans.edu/applescript/docs/macscrpt_digest_ev.hqx
  3943. >>>
  3944. >>>Many thanks, Brian!
  3945. >
  3946. >
  3947. >Where do we get Easy View?
  3948.  
  3949. ftp://gaea.kgs.ukans.edu//applescript/addons/easy-view-244.hqx
  3950.  
  3951. Or your favorite, congested ftp site.
  3952.  
  3953. pf
  3954.  
  3955.  
  3956.  
  3957.  
  3958. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  3959. Fred Terry  Cadence Design Systems  pfterry@lks.csi.com  +1 913 841 1283
  3960. =========================================================================
  3961. Date:         Mon, 9 May 1994 23:00:01 -0500
  3962. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3963. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3964. From:         Kelly A Campbell <camel@CIS.KSU.EDU>
  3965. Subject:      Re: Referencing an Application by its id type
  3966. In-Reply-To:  <199405091137.GAA00846@depot.cis.ksu.edu> from "John W. Baxter"
  3967.               at May 8, 94 10:39:43 pm
  3968.  
  3969. >
  3970. > >>As long as you are dealing with compiled scripts, don't worry too much
  3971. > >>about the name issue.  AppleScript in general (and perhaps Script Editor
  3972. > >>even more so, perhaps not) works very hard (too hard in some cases) to keep
  3973. > >>up with you when you make changes.
  3974. > >
  3975. > >Actually, this is all done by the Alias Manager.  When you choose an
  3976. > >application in a tell statement, AppleScript simply saves an alias.  That
  3977. > >explains all the capabilities and limitations associated with moving
  3978. > >scripts to other computers.  They behave just like aliases do, except that
  3979. > >when AppleScript can't resolve an alias it looks for a running process and
  3980. > >if it can't find the right one then it asks the user where the application
  3981. > >is.
  3982. > >
  3983. > >That means that you can avoid being asked by simply making sure the needed
  3984. > >programs are already running before you open or run a script.
  3985. > >
  3986. >
  3987. What I was thinking of was something like Peter Lewis' FTPd 2.2.0. It
  3988. lets the owner, via a quote site command, list all the processes running
  3989. and open and quit applications from a remote computer using their creator
  3990. codes. I imagine it does this through the desktop file, but is there a way
  3991. to do this kind of thing through AppleScripts?
  3992.  
  3993. Thanks,
  3994. Kelly
  3995. --
  3996. ,---------------------------------------------------------.
  3997. | Kelly A. Campbell      |       Kansas State University  |
  3998. | camk@ksu.ksu.edu       |       Student Publications     |
  3999. | camel@cis.ksu.edu      |       Macintosh Tech Support   |
  4000. `---------------------------------------------------------'
  4001. =========================================================================
  4002. Date:         Mon, 9 May 1994 23:08:09 PDT
  4003. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4004. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4005. From:         network_manager@ALDUS.COM
  4006. Organization: Aldus Corporation, Seattle, WA
  4007. Subject:      NDN:Re: Referencing an Application by its id type
  4008.  
  4009. Your mail to the Microsoft Mail Server could not be fully
  4010. delivered!   No Valid Addresses!   It has been deleted.
  4011.  
  4012. Error List:
  4013.   Bad 'To:' Address: david.rogers@MSM-Inter
  4014. =========================================================================
  4015. Date:         Tue, 10 May 1994 08:39:48 +0100
  4016. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4017. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4018. From:         Marco Strehler <strehler@FVMED.UNIZH.CH>
  4019. Subject:      Re: Eudora: strange AppleScript behavior?
  4020.  
  4021. >>
  4022. >>        get MailboxType of first Mailbox of Mail Folder ""
  4023. >>                -- this works: result 6220 (the IN-Mailbox)
  4024. >>        get WasteSpace of first Mailbox of Mail Folder ""
  4025. >>                -- this works: an integer is returned
  4026. >>        get Name of first Mailbox of Mail Folder ""
  4027. >>                -- THIS DOESN'T WORK. Error text:
  4028. >>                -- << Eudora1.4.1 got an error:
  4029. >>                -- Can't get Name of Mailbox 1 of Mail Folder \"\". >>
  4030. >>
  4031. >>end tell
  4032. >
  4033. >As said before, the equivalent Frontier script works.  That led me to look
  4034. >into Eudora's 'aete' resource ("Dictionary").
  4035. >
  4036. >And I found that the Name property for a mailbox is 'pNam' rather than
  4037. >'pnam' which (a) is the Registry definition, and (b) is what Frontier uses
  4038. >(because of how the objectModel table in Frontier is set up).  When I
  4039. >induced Frontier to ask for the 'pNam' property of a mailbox, the same
  4040. >error was returned as AppleScript receives.
  4041. >
  4042. >So...I changed [in Eudora's 'aete' resource] the code for the Name property
  4043. >of a mailbox to 'pnam' and...
  4044. >   there was no change in behavior.
  4045. >
  4046. >I went back and changed the Name property of EVERY class in Eudora which
  4047. >has one from 'pNam' to 'pnam' and...
  4048. >   get Name of first Mailbox of Mail Folder ""
  4049. >now works fine.
  4050.  
  4051. Thanks for help!
  4052. Now, here is a script for scanning mailboxes in *nested* mailbox folders.
  4053.  
  4054. Marco
  4055.  
  4056. copy {} to gMBoxList -- mailbox list
  4057.  
  4058. tell application "Eudora1.4.1"
  4059.         -- start with the root folder
  4060.         tell me to ScanMailFolder(a reference to (Mail Folder "" of
  4061. application "Eudora1.4.1"))
  4062. end tell
  4063.  
  4064. gMBoxList --    Let's have a look
  4065.  
  4066. on ScanMailFolder(Root)
  4067.         tell application "Eudora1.4.1"
  4068.                 --      call ScanMailFolder recursivly
  4069.                 repeat with i from 1 to (number of Mail Folder of Root)
  4070.                         tell me to ScanMailFolder(a reference to Mail
  4071. =46older i of Root)
  4072.                 end repeat
  4073.                 repeat with i from 1 to (number of Mailbox of Root)
  4074.                         --      Add name and number of messages to the list
  4075.                         tell me to =AC
  4076.                                 Push((Name of Mailbox i of Root), (number
  4077. of Message of Mailbox i of Root))
  4078.                 end repeat
  4079.         end tell
  4080. end ScanMailFolder
  4081.  
  4082. on Push(BName, nMessages)
  4083.         global gMBoxList
  4084.         set gMBoxList to gMBoxList & {{Box:BName, Messages:nMessages}}
  4085. end Push
  4086.  
  4087.  
  4088. *
  4089. * Marco Strehler, Im Dreispitz 21, 8152 Glattbrugg (Switzerland)
  4090. * ++41 (0)1 810 27 03
  4091. * strehler@fvmed.unizh.ch
  4092. *
  4093. =========================================================================
  4094. Date:         Tue, 10 May 1994 00:35:58 -0700
  4095. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4096. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4097. From:         Jon Pugh <jonpugh@NETCOM.COM>
  4098. Subject:      Re: Referencing an Application by its id type
  4099.  
  4100. >   That's essentially what I thought, except that it doesn't quite explain
  4101. >(to me) this sequence:
  4102. >
  4103. >1.  Compile a script while program Proj.pi is running under the Think 
  4104. debugger.
  4105. >
  4106. >2.  With the project not running, try to open/run (I don' recall which...I
  4107. >can look up the message traffic if it actually matters) the script.  Crash,
  4108. >and it became clear (after some playing with MacsBug, that the project file
  4109. >had been dealt with as if it were an application.
  4110. >
  4111. >3.  [This is the part that suggests that the signature is kept around
  4112. >somewhere].  Open/run the script again, and Think Project Manager is
  4113. >launched.  The only reason I can see for THAT effect is that they share the
  4114. >creator 'KAHL'.
  4115.  
  4116. Proj.pi IS run as an application, which is why the alias points to it.
  4117. That's how THINK works.  It runs your application directly out of your
  4118. project file with your program's signature and the type 'PROJ' instead of
  4119. 'APPL'.  I'm not surprised that it crashes, since most of the resources are
  4120. in the file Proj.pi.rsrc.
  4121.  
  4122. Now, that doesn't explain the strange reason that if you have THINK open
  4123. but your project isn't running, AppleScript directs your script to it
  4124. instead of your project.  I don't know why this happens, but once it does,
  4125. you are screwed and have to reboot to send scripts to your project again.
  4126.  
  4127. What I think is happening is this.  AppleScript tries launching your
  4128. project, but notices it's not an APPL.  So it grabs the signature of the
  4129. file 'KAHL' and launches that, getting THINK Project Manager.  Now it
  4130. stuffs that in some internal cache and you are hosed for the duration.
  4131.  
  4132. How's that?
  4133.  
  4134. Jon
  4135. =========================================================================
  4136. Date:         Tue, 10 May 1994 00:36:02 -0700
  4137. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4138. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4139. From:         Jon Pugh <jonpugh@NETCOM.COM>
  4140. Subject:      Making an app scriptable...
  4141.  
  4142. --========================_14317516==_
  4143. Content-Type: text/plain; charset="us-ascii"
  4144.  
  4145. >not a lot happens except the dreaded "applicatiopn Fred does not understand
  4146. >wave..." dialog pops up. I tried a few obvious things like swapping the event
  4147. >and class IDs in case I had them the wrong way round but that has no effect.
  4148. >Anyone got any idea what is going wrong?
  4149.  
  4150. No, but here's what I would do to find out.
  4151.  
  4152. First off, install the dcmds and templates included in this email (oops,
  4153. sorry about the binhex ;) into your Debugger Prefs file.  Then reboot.  Now
  4154. get everything running and break into the debugger.  Use the "atsend" macro
  4155. which will stop you at every AESend call and display the AppleEvent being
  4156. sent.  Given that info you can discern a lot.  If you want to see what your
  4157. handler returns, type "reply" at this point and it will step over the
  4158. AESend call and display the reply AppleEvent.
  4159.  
  4160. This file contains both the "aevt" dcmd which displays AppleEvents and the
  4161. "dd" dcmd which displays AEDescs.  It also contains macros which correspond
  4162. to the names of all the AE traps (which are selectors off of PACK 8) and
  4163. the OSA traps (which are component calls).  Both of these are difficult to
  4164. trap on without these macros.  It also contains the 2 macros I described
  4165. above.
  4166.  
  4167. I didn't write any of this stuff.  It's all on the AppleScript CDs too.
  4168.  
  4169. Jon
  4170.  
  4171.  
  4172.  
  4173. --========================_14317516==_
  4174. Content-Type: application/mac-binhex40; name="AE_Debuggers"
  4175. Content-Disposition: attachment; filename="AE_Debuggers"
  4176.  
  4177. (This file must be converted with BinHex 4.0)
  4178.  
  4179. :$%&&)%4PBR9RCf9bF`"bFh*M8P0&4!!!!!!!!!!!*VN+iJ!!!!!"!!!!*Km!!#8
  4180. I!!!!QL"2mS!'mbF`&bj)B'8I'04J2aKR%'!r1*qrB"miC"2e$%&&)%4PBR9RCf9
  4181. bFfN#!!)!FR0bBe*6483!!!!!!!!#!(*cFQ058d9%!!!!!!!!!!!!!!!!!!!!!!!
  4182. !!!!!!!!!UI5#A`!!!!!!!#Dj#`)""K!("!8)#3!65MJ#N@X@%MJ1!IX#!3!2$!%
  4183. (SF8#h#33+!!($rk%$$J1!5pY&Sd6%$J-X3`!"pB-!(&kE36EIa-2rQ!jU*miTdB
  4184. N#+X'9DG')$J"#&qdL(jCMaFL95m2!2ik!!!PS+LICA)!%JN"!!!`qJ!#!!$r!dk
  4185. kF!!JEJ!!$4!!!J+i6[S%c%(Y!#TK*'%LB5"K(Q%FB4TK''%@B44K%Q%3B3jK$'%
  4186. +B3KK"Q%%B3*1F5!I3rVrf*!!LH+))&mr!#m))'d!"%l36PErl%MR$aK#,J!3)#i
  4187. !#&+!`,crrrrq+J$DVJ!-+'i!$#`8,L`!"%U'E!4J!!#%)!G3J&+!`,crrrrq*N$
  4188. AlJ!-F!L`KfiS)!G3J&+!`,crrrrq)L`!$*+!@)&5JF+mrrrrrLm",`C1ZJPbepp
  4189. J1%U(C`K`",#(C`*J0LJ'B#)J#e#!N!#()%!J%()-d)&5J*!!Km#mrrrrrYI!ZSY
  4190. X!Q!58i4`!E#%EpLkLfB'(A`!!3!360mBm%jH)&p36dl3M80)480,590548028N3
  4191. !!%j@!!")j`-!2#i!#N*(B!K1ZJAf-!G54dM(-JC)`G+")!(PLG+!XSGZjNcZ!-$
  4192. rq%jH6R@'5@jNC@jd!!!!6PErr%MR"`JSEJ!)2#i!$LS8)%a3L#e)rra1ZJ9)5-B
  4193. ["Nkkrjj)EIe)6VS'%R!),`![,[rm6VS'hR!T,`"1ZJ9J6VS&)(i!6qm!&'!F5-B
  4194. ["Nkkrfj)E[rm5-B["Nkk!M"2l`!-)!G5KlU(EZ"-lK$Jrqa1ANjeLNC[FQeKG%a
  4195. TFh3!!!"19[rm51F(##KZ!!Jm,J!1+K3J6&#),8Mrr%M',`C1Z[mF5'hpF%kk"C!
  4196. !F!J[!#mZrra1ZJCFF#N[!%kk"0j1ZJ5HIJ"2l`!8B$4)aLm'6VVql#"Zrr`[%%k
  4197. k"a41ZJ6Q)'lrr&L),8Mrr%KZrra)aLm'6VS"PNr[!"!J"e+(ZSGZb%cZ%1$rl%j
  4198. H6R@-4QpbE@&d8Q9MEh*N!!!!6PEriNMR$aJU,J!32#i!#NIZrq)Z,J!8)'i!$%R
  4199. 39Bm[$#m(6VVpV"JIF"b`Kf`%F"aJ!L!(,J!`"P*')!8%J&4&@&4RFJ5!%5NG'@G
  4200. U")!'q[i(CbS%J!!&q[0RH!5!![,lZ@Ff")!$![P2CcJ%J!%$$!0RB!5!!4%!mfF
  4201. kB&C)EIfH6VS%PNkk!lK)aLm',`a1Z[j+6qm!$'"k5'hpTNkk"(TB6dkk!jT)aLm
  4202. ',`a1Z[kb8%pJAKE(B!)@h#!(8iG+J'Ef5'lriNkk"&"1ZJ0b@%pJ3%S%Cc)["8k
  4203. k"I4)EIfk6VS%0Nkk!eK)aLm',`a1Z[j`6qm!%'!D-"a)`#m!6VS&&%kk!k"B6e@
  4204. (5SGXkNkk!bj64NcZ'2$rbNjH6R@+4QpbE@&d4'&dB3!!!%j@!!")j`%B+'i!$#i
  4205. 84q`!##mX!!3["bm,-#i!#NM!,`"1Z[kX61iBJ2rd6Pj1GBT'Eh*YBA4*G'9Y!!!
  4206. !6PB!!%MR!4JQEJ!-+&-Z&#m(6VS&8%kk!b*`##m!,b`!"%kk"'*1ZJ-56VS$$Lm
  4207. --#i!#NM!,`"1Z[q))%a3L#iX!!6HL#D(61iBJ2rd6Pj1GBT'Eh*YBA4%CA0M!!!
  4208. !6PB!!%MR!aJQEJ!)+&-X,!!%,L`!##!(FJh3JA6qa)$9NdKYrG*1ZJ-QF!J[!#m
  4209. -6VS$p(!T,`"1ZJ*f6VS#0Lm86VS%`%kk!T)["Nkk",C1ZJ+)F!J[!#m(6VS$bNk
  4210. k!RT1ZJ*f)%aBL#K),`a`!#m!6VVqlNcZ'-$rm%jH6R@,4QpbE@&d8'&bB@d!!%j
  4211. @rrT)j`mB)'i!#$!S!!4R!!'i8d"R(&0!C`4J!!'15'hq!%kkqa4)EIib6VVl$'!
  4212. !!CK9MdKZrrT)E[rr6VVl"NSZrrp86fF!!9K`!F#ZrrTQ!!&1)'lrqLeS!!6rqR!
  4213. "`+J!"'B!!6SJE[rk,9$rqR!"`*!!CJ!"+LKZrrSX,!!3,L`!$%(X!%BQE!"#emJ
  4214. S%bSV!!3-K'&PGR4Q!!$d$)8!!3!"CJ!!kNkk!6T)EIji6VVkKLmX!$*1ZJ1k6VS
  4215. "M%kk!BJ[,!!f6VS$UNkk!Aa`##m!,b`!1Nkk!Va1ZJ&X,`41ZJ13!%kk!@*1ZJ&
  4216. H6VS"@Nkk!9C1ZJ&5F!J[!#m&6VS#P%kk!0i[2'&NC(*1ZJ0N6VS"0Nkk!6)[,!!
  4217. q6VS$9%kk!5C`##m!,b`!3Nkk!QC1ZJ%@5'`!2R!!,`"1Z[f5)%Y3L#e)rrT2l`!
  4218. dB!T)E[rk6VVq'PK2)!G6KdU!CZiJE[rk@+lrqLm36VS$"Nkk!(*B6f!+5'lrqNk
  4219. krI*B6b!'8iC+J'EZ6VS!@'!i5'hqRNkk!5K1ZJ"+@%pJ+%KYrVK1Z[Q5B"j)EIl
  4220. U6VS"$L"Z!!J`+!!%5-![!%kk!TC1ZJ!J8%p-lKM`rq*1ALkI6R@-3dp068&14%9
  4221. 19&*C!!!!6PB!!#m,4qhr!#m,)!Y5J#m!,bhqr%kk!dB@VIlr,`Y1Z[NbF!!V32l
  4222. m*Qlrr%jH6R@(8(9d6'PZC3!!6PB!!#m,4qhr!#!Yr[a5VIlm&ki!#`!!*Qlrr%j
  4223. H6R@(8(9d3fKKFJ!!6PB!!(!J,`"1Z[r-6Pj1GBK3GA46F'&MC3!!!%j@!!")j`-
  4224. B+'i!#%IYr`!X,J!-,Li!%#m-)#hqr0#,,`!["Nkk!VEGVIlmB!41Z[qd[Uhqr'l
  4225. f-#hqrN)c!!"-lKM!rr"1ANjeLP"eG%*jG'9c9'm!!!"19J!!51F"%#CZ!!K`!"!
  4226. 6,J"`!#m!,`FL#e+",`&1Z[q)61i)J2ri6Pj1GBG3GA438h4b!!"19J!!51F2!#`
  4227. Z!"!Z,J!-)#i!#!+!!!!!$bS!)#i!#1L)+!"R'#!'8i![!#!(8i![!#m%6VVrbNr
  4228. [!!aJ+&1'5SG[$#!(8i#FJ'!%6VVr#,bYr[aZpQ!+F$![!%kkrXjBMe1(E[*`#V#
  4229. &Ba!J"A)`d)%[!%kkrVCBMf!1)!9bUC!!J5m!6VVqTPL261i!m2r`6Pj1GBT3GA4
  4230. 95'9i@P4[!!!!6PB!!(!!,`![,J!-,bi!#%kkrda1ANjeL&"eG&9)CAKD!!!!6PB
  4231. !!(!!,`"b"#m"G!!d,J!+,`*1Z[mN6Pj1GBY3GA495'9i9fpbC!!!6PB!!%MR$`!
  4232. U,J!),Li!$#!&FJT1ZJ$i+!!J"A)+6VS!hL`!Ca!J"e1!,`!["Nkkrp"3Mf!B9BG
  4233. J"%kkrLUqVIlmE[C`)bm!6VVpmPL2)!4b-0#",`"1Z[hN@)p-lJ$`rr"1ANjeL9"
  4234. eG&9%C@08E`!!6PB!!(!!,`![,J!)6VVrJ%jH6R@(8(9d984PB`!!6PB!!#m(,Li
  4235. !#(!B)JIJU5!m!!!!rm#",`"1Z[f3!(!3)JIJU5!m!!!!rm#",`"1Z[em)!IJL#)
  4236. m!!!!rm+!,`&1Z[eU)$`!!!$r`)F[!%kkr9`Z,[rm6Pj1GBP3GA428e4jF'8!!#)
  4237. [!!3J,`!)6VS!$L!"6R8L,`!%)#m!#%MR1!!N!8K#5N*Q($B!3N")3'F%J-%d!%K
  4238. #-!1!`63!)J*#3%K!B#)N!%*!5%")3N*#*J&b!(J2e),4J0+"X)0P"*!!Je)"8Fc
  4239. rm%cI!"a1G5)I)"mLAb"IS#iL38l4,`![!6![!"$"l`!1-Lm!$-2[!",338K!3N!
  4240. b,`!5`Zm!$Y#",d!!%#)I)"m[9`!%@)p1G598@9"&)%a&6NG85#!J)#"%394")#!
  4241. SE'PcG#"cG'&bG(-JBA3J!!!X5d9C)#"8@9"&)%a&6NG85#!J)#"%394")#!SFQ9
  4242. MEh*N)(0dBA*dFb"KG#!!"QaTFh3k)!!5Ef*UC@0d)(0`C@0TCQPPFMSJ!"BJE'p
  4243. [Dh-JE'PVC5"K)(*PBfpbC$SJ!#Y339*0)&4C8%8J6%914e4))#!J)%4"9%%J)#K
  4244. `BA*KE5"cG'&bG(-JBA3J!!![B@9fG#"KC'4bCA0cAfpQAd&`F'aP4ACPER4IC'9
  4245. cBh*TF(4[FL!S1#mb-Lmj-5N!!%-J)#"3FQPZG(-JEh9d)'0[ER4PER4c)'pQ)'&
  4246. Z)%&`F'aP)'9fC@jd)(GTG'JJF'&bB@ePG'9bFb"QEh*YBA4dC@3Z!!!N3da"8e-
  4247. J583J)#"59&*1583J)#"38Np86d026#"@49*658p1!"G#B@3JF(*[G'pMEf`JEh)
  4248. JGQ9bFfP[EJ!!,d9bFQpb1L"TE'aPCf&X)'9iF(*PFh0TEfiJEh)JBQ&N)'&NC(*
  4249. PFh-JG'mJEA0R!!!3G@jVEQphEL"bCA&eCA0d)!!!!!!!!!!!!!!!!!!!!!!!!!!
  4250. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  4251. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  4252. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  4253. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  4254. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  4255. !!!!!"lB!!J)!6[S!3N(Y!#TK*'%LB5"K(Q%FB4TK''%@B44K%Q%3B3jK$'%+B3K
  4256. K"Q%%B3*1F5!I3rVrf*!!LH+))&mr!#m))'d!"%l36PErmNMR"aJJEJ!)-#J!"'F
  4257. !!G463'FF8d"R"'!!!DT)EIi#6VVrRNKYrLK1Z[q@B!!"Y&@25'lrqNKZrrp1Z[q
  4258. 3!%SZrrp8MfF!!A4`!F#ZrrTQ!!&U5'hq3Nkk!S!JE[rk,a"1ZJ3X6VS"Q#"ZrrS
  4259. YD!!%rr)YE[rbrrC3MfF!!5j`!F#Zrr*Q!!%D)'lrmLe3rr*`!F#3!'B!!3SJ,[r
  4260. b8B!J3#`3+JC)48M&i%8#KJ$rrrp`$m!&FJ!5!&""5-%Z"Tk"5'hq9Nkk!K*`##m
  4261. !,blrpNkk!Yj)EIjS6VS"rR!),`!["dkk!Xa)EIji6VS"l%L&-$`!`-!&6qm!('F
  4262. S"!!!3'F+"!!!3'F3B!!!PR"-,`"1ZJ%S@)pJ'("5,`"1ZJ%F@)pJ$("',`"1ZJ%
  4263. 3@)pJF%kk!-a`##m!,blrmNkk!R*1ZJ%L6VS"(LKZrr)Q6(!3em"3Mf!5-"4)`#m
  4264. !6VS#GNkk!3*BMe5-YmaLkNkk!2C1ZJ$bF'3[!()3,`%[,[rb6VS!rJDZ!!!!%2r
  4265. b6VS!F%r[!!`%K`!!!""+Kfk@B%*)EIk-6VVq'Q!i5'hqUNkk!5K1ZJ"+@)pJ+%K
  4266. YrVK1Z[i!B"j)EIlU6VS"$L"Z!!J`+!!%5-![!%kk!TC1ZJ!J8)p-lKMJrpj1ALk
  4267. I6R@-3dp068&14%919&*C!!!!6PB!!#m,4qhr!#m,)!Y5J#m!,bhqr%kk!dB@VIl
  4268. r,`Y1Z[fJF!!V32lm*Qlrr%jH6R@(8(9d6'PZC3!!6PB!!#m,4qhr!#!Yr[a5VIl
  4269. m&ki!#`!!*Qlrr%jH6R@(8(9d3fKKFJ!!6PB!!(!J,`"1Z[r-6Pj1GBK3GA46F'&
  4270. MC3!!!%j@!!")j`-B+'i!#%IYr`!X,J!-,Li!%#m-)#hqr0#,,`!["Nkk!VEGVIl
  4271. mB!41Z[qd[Uhqr'lf-#hqrN)c!!"-lKM!rr"1ANjeLP"eG%*jG'9c9'm!!!"19J!
  4272. !51F"%#CZ!!K`!"!6,J"`!#m!,`FL#e+",`&1Z[q)61i)J2ri6Pj1GBG3GA438h4
  4273. b!!"19J!!51F2!#`Z!"!Z,J!-)#i!#!+!!!!!$bS!)#i!#1L)+!"R'#!'8i![!#!
  4274. (8i![!#m%6VVrbNr[!!aJ+&1'5SG[$#!(8i#FJ'!%6VVr#,bYr[aZpQ!+F$![!%k
  4275. krXjBMe1(E[*`#V#&Ba!J"A)`d)%[!%kkrVCBMf!1)!9bUC!!J5m!6VVqTPL261i
  4276. !m2r`6Pj1GBT3GA495'9i@P4[!!!!6PB!!(!!,`![,J!-,bi!#%kkrda1ANjeL&"
  4277. eG&9)CAKD!!!!6PB!!(!!,`"b"#m"G!!d,J!+,`*1Z[mN6Pj1GBY3GA495'9i9fp
  4278. bC!!!6PB!!%MR$`!U,J!),Li!$#!&FJT1ZJ$i+!!J"A)+6VS!hL`!Ca!J"e1!,`!
  4279. ["Nkkrp"3Mf!B9BGJ"%kkrLUqVIlmE[C`)bm!6VVpmPL2)!4b-0#",`"1Z[hN@)p
  4280. -lJ$`rr"1ANjeL9"eG&9%C@08E`!!6PB!!(!!,`![,J!)6VVrJ%jH6R@(8(9d984
  4281. PB`!!6PB!!#m(,Li!#(!B)JIJU5!m!!!!rm#",`"1Z[f3!(!3)JIJU5!m!!!!rm#
  4282. ",`"1Z[em)!IJL#)m!!!!rm+!,`&1Z[eU)$`!!!$r`)F[!%kkr9`Z,[rm6Pj1GBP
  4283. 3GA428e4jF'8!!#)[!!3J,`!)6VS!$L!"6R8L,`!%)#m!#%MR1!!N!8K#5N*Q($B
  4284. !3N")3'F%J-%d!%K#-!1!`63!)J*#3%K!B#)N!%*!5%")3N*#*J&b!(J2e),4J0+
  4285. "X)0P"*!!Je)"8Fcrm%cI!"a1G5)I)"mLAb"IS#iL38l4!!`NEA0R)'&NC(*PFh0
  4286. IEfCI3A"`E'9&GQ9ZG&pNCA0MFQP`G'pb!"JJ)#"3FQPZG(-JEh9d)'&Z)%&&4'9
  4287. cBbi!%84PFf0bDA"dEh)JG(P`C6SJ!!!2E@&cG'9b)("dFL"KG$SJ!!!1)#"LE'p
  4288. MDb"cDATP1L!!%6XJ)'*XEf0V)(0dBA4eFcSJ!!!F4A*bEh)k)'*KC#"NBA4K5'&
  4289. ZC'aP)'CTC@aN,J!,6P9-6#"SB@jNE'8!!#p&FR*[FMSJD@aXC@GKE#"PH("bCA0
  4290. cD@pZ)'pb)'*KC#"KC'4bCA0c)(4[)'ecC`!!%(9ZDfj[GfiJFQ9aG@9cG#!!!!!
  4291. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  4292. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  4293. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  4294. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  4295. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  4296. !!!!!!!!!!!!!!!!!!!!!!!!!!!Lq!$m-389$FQ9KG'9%CA0M%U"3B@0V1#"54$!
  4297. ZGb!p)$Jb03Y"480[CA*MC9"dFK+J8'&MDcJJ8N3`,RFJ25"K-$)-389$Ef9bBf9
  4298. %CA0M%U"3B@0V1#"54$!ZGb!p)$B`-`e"484TFh"[Ff9%CA0M%U"3B@0V1#"54$!
  4299. ZGb!p)$)`0!p"484eF'aTBf&dC84PFf-5S&"KBfXi)&*%-#jh)$dJ0$!e$%&&3h*
  4300. PBA4P6'PcG"+J8'&MDcJJ8N3`,RFJ25!h-$B-389$Eh9ZG%PdC@ec%U"3B@0V1#"
  4301. 54$!ZGb!p)$3`0`K"49"eG&"dFK+J8'&MDcJJ8N3`,RFJ25""-$J*3893GA4%CA0
  4302. M%U"3B@0V1#"54$!ZGb!p)$B`13Y"48GPG%jdD&"dFK1J8'&MDcJJ8N3`,RFJ25!
  4303. a-$""$%&&4f9d6R4S4'9cBa+J8'&MDcJJ8N3`,RFJ25""-%)23896DATP6fC1G'K
  4304. *G'9Y%U"3B@0V1#"54$!ZGb!p)$Jb33T"48GPG%&bFQ&j%U"3B@0V1#"54$!ZGb!
  4305. p)%3`3`T"49"eG%&bFQ&j%U"3B@0V1#"54$!ZGb!p)%)`4!a"484PE'9dC8PdC@d
  4306. 5S&"KBfXi)&*%-#jh)$dJ0$"&#d&&8(9d5f9j8(4b%U"3B@0V1#"54$!ZGb!p)%%
  4307. `4Ja"49"eG%YPH84PFf-5S&"KBfXi)&*%-#jh)$dJ0M%`#d&&4f9d5f9j8(4b%U"
  4308. 3B@0V1#"54$!ZGb!p)'8a-3a"48GPG%YPH84PFf-5S&"KBfXi)&*%-#jh)$dJ1$%
  4309. b$d&&8fPkC8pQ5f9j4'9cBa+J8'&MDcJJ8N3`,RFJ25!i-MN2389%C@aPG'9,CAP
  4310. %CA0M%U"3B@0V1#"54$!ZGb!p)$3a-`e"49"eG&"KFQ&Y8(4b%U"3B@0V1#"54$!
  4311. ZGb!p)'%`CJj"49"eG&"KFQ&Y4'9cBa+J8'&MDcJJ8N3`,RFJ25!f-6!0389(CA4
  4312. 3BA*KE9"dFK+J8'&MDcJJ8N3`,RFJ25"P-6%1389(CA43BA*KE84PFf-5S&"KBfX
  4313. i)&*%-#jh)$dJ1$%b$8&&8fPkC8pQ8'&bB@d5S&"KBfXi)&*%-#jh)$dJ1$)j$8&
  4314. &4'9XCA4P8'&bB@d5S&"KBfXi)&*%-#jh)$dJ0$%c%8&&4f9d3A4dFQPLGA4P8(4
  4315. b%U"3B@0V1#"54$!ZGb!p)'8a04*"48GPG%&dG(*TBR9dC84PFf-5S&"KBfXi)&*
  4316. %-#jh)$dJ1$)f%8&&8fPkC8pQ3A4dFQPLGA4P%U"3B@0V1#"54$!ZGb!p)$Jb1"&
  4317. "49"eG%&dG(*TBR9dC9"dFK+J8'&MDcJJ8N3`,RFJ25"K-6B53893GA4"G(4bD@*
  4318. eG'9%CA0M%U"3B@0V1#"54$!ZGb!p)$Bb0a*"480bC@&dC8&`F'aP4ACPER35S&"
  4319. KBfXi)&*%-#jh)$dJBM%d"N&&8f9ZC"+J8'&MDcJJ8N3`,RFJ25"N-6F63893FQp
  4320. MCA0c3A"`E'9&GQ9ZG"+J8'&MDcJJ8N3`,RFJ25!b-@)-3895CA0PG&4TE@9b%U"
  4321. 3B@0V1#"54$!ZGb!p)$)a14K"490eFh"PEQ48D'9$GA*bC@jd4ACPER35S&"KBfX
  4322. i)&*%-#jh)$dJ-M*L&d&&8Q9cG@eP9'KP3h9bFQ9ZG%9fC@jd%U"3B@0V1#"54$!
  4323. ZGb!p)$Ja1"4"48GPG&4SC80eFR*PER4&GQ9ZG"+J8'&MDcJJ8N3`,RFJ25!b-@%
  4324. 83896CA48D'9$GA*bC@jd4ACPER35S&"KBfXi)&*%-#jh)$dJ-M*$&d&&4f9d5@j
  4325. dCA*KBh4TEfj"E'a[Gf9N%U"3B@0V1#"54$!ZGb!p)$)aC"G"490PG%PZG'9bB@0
  4326. dD@pZ3@aXEhGPC"+J8'&MDcJJ8N3`,RFJ25!a-@85389*ER4PFQ&MG>G'K9Ff9
  4327. b%U"3B@0V1#"54$!ZGb!p)$BaBa9"48PZFh4KE'a&GQ9ZG%KKEQ4XCA)5S&"KBfX
  4328. i)&*%-#jh)$dJ16&Q&%&&8Q9YEhCP4ACPER4)B@jNE'9b%U"3B@0V1#"54$!ZGb!
  4329. p)$Fb-"&"48GPG%9fC@jd5'&ZC'aPFK+J8'&MDcJJ8N3`,RFJ25!j-M%B389*ER0
  4330. dB@aX3fpPFQ0TEfj)B@jNE'9b%U"3B@0V1#"54$!ZGb!p)'%b-KG"49*PE@pfC80
  4331. [CA*MD@pZ5'&ZC'aPFK+J8'&MDcJJ8N3`,RFJ25!h-M-8389(CA4$Ef9bBfP[ENK
  4332. KEQ4XCA)5S&"KBfXi)&*%-#jh)$dJBM)d&d&&5@jcG'&XE&0`C@0TB@a)B@jNE'9
  4333. b%U"3B@0V1#"54$!ZGb!p)$8`-"C"49*PE@pfC90`C@0TB@a)B@jNE'9b%U"3B@0
  4334. V1#"54$!ZGb!p)$8`-40"48GPG&0`C@0TB@a)B@jNE'9b%U"3B@0V1#"54$!ZGb!
  4335. p)$8bC"4"Bf0PF(4)D@GS6'9fC@a&GQ9ZG"#JB6JiCL"cF&iZGb!p)$-d&%&&8f9
  4336. d6f*UC@0d3f&XE%*KBfYc%U"3B@0V1#"54$!ZGb!p)%8c03P"49*PFfpXGQ85S&"
  4337. KBfXi)&*%-#jh)$dJ06-f&d&&5@jcG'&XE%pLDQ9MG%&MBf9cFfpb%U"3B@0V1#"
  4338. 54$!ZGb!p)$Nc0aC"49*PE@pfC8pLDQ9MG%&MBf9cFfpb%U"3B@0V1#"54$!ZGb!
  4339. p)$Fc1"0"48GPG%pLDQ9MG%&MBf9cFfpb%U"3B@0V1#"54$!ZGb!p)$Nc13j"484
  4340. TFh"[Ff98EfYPEK+J8'&MDcJJ8N3`,RFJ25!b-d%8389$B@aX6f*UC@0d3@0MCA0
  4341. cEh)5S&"KBfXi)&*%-#jh)$dJ3c0##%&&9P46C@jN$Q&PGR3J3#K5B6FV-6BT"Q&
  4342. dFf9ZC"GKG')JB@9cC@jN)#Fl)'&PGR4cC@jN*`9bCA"XH4"d1f&PGR3J3#K5B6F
  4343. V-6)T!!!(33!["dp638a[B@39C'&dBA"eBR0YCh)J3(0`28-`-$!a#%p6390dEh*
  4344. P&Q4KG'&`G@*cE@Gb)%"cF$da-$!`-$)+6e0"4AKPBh9dC4CNBA4KF(9LFfeRFL"
  4345. !Fh!p-6!`-$!c#Np6384TFh"XBAN@C'&dBA"eBR0YCh)J3(0`26%`-$!`0!j28d&
  4346. 6Bh*TF(4&FR*[FK9NBA4KF(9LFfeRFL"!Fh!p3c!`-$8+6e0"4'PcF'pcC49NBA4
  4347. KF(9LFfeRFL"!Fh!p0$!`-$B36e0"8f9d8f0bDA"d5@jQEa9NBA4KF(9LFfeRFL"
  4348. !Fh!p3c!`-$F36e0"4f9d8f0bDA"d5@jQEa9NBA4KF(9LFfeRFL"!Fh!p3c!`-$J
  4349. 36e0"8f9d3@0dDACP8(*[Ba9NBA4KF(9LFfeRFL"!Fh!p1$!`-$J36e0"4f9d3@0
  4350. dDACP8(*[Ba9NBA4KF(9LFfeRFL"!Fh!p1$!`-%%C6e0"8f0bDA"dD@jR3fpYF'p
  4351. ZC@jd6Q&YC49NBA4KF(9LFfeRFL"!Fh!p0$!a-$)+6e0"3fpYF'PXC49NBA4KF(9
  4352. LFfeRFL"!Fh!p3c!a-$-*6e0"3fp`H8P%&@4KG'&`G@*cE@Gb)%"cF$di-$%`0!a
  4353. 28d&(CA46Eh9bBf89C'&dBA"eBR0YCh)J3(0`28-`-M!a%8p6380[CA*MC8CbEfe
  4354. %CA0M&@4KG'&`G@*cE@Gb)%"cF$e$-$-`-3p28d&$Ef9bBf98Ed4PFf-@C'&dBA"
  4355. eBR0YCh)J3(0`26%`-$-`-Jj28d&6CA46C@jN8(*[Ba9NBA4KF(9LFfeRFL"!Fh!
  4356. p1$!d-$%16e0"4f9d8f9ZC&"bEf-9C'&dBA"eBR0YCh)J3(0`26J`0$!b%%p6390
  4357. PG%0bC@&dC9"bEf-9C'&dBA"eBR0YCh)J3(0`26J`0$!c%%p638GPG%0bC@&dC9"
  4358. bEf-9C'&dBA"eBR0YCh)J3(0`26J`0$!d%dp6390PG%4PCQ&eE(48BA*RCA39C'&
  4359. dBA"eBR0YCh)J3(0`263`0$!e%8p6390dBA*d8Q9MEh*ND@jR&@4KG'&`G@*cE@G
  4360. b)%"cF$dd-$8`-4"28d&6G'p`8Q9MEh*ND@jR&@4KG'&`G@*cE@Gb)%"cF$dd-$8
  4361. `-Jj28d&-Ef&N4AKPBh9dC4CNBA4KF(9LFfeRFL"!Fh!p-6!`0M!a%8p6380[EA"
  4362. TE'9&H'9MGA4P&Q4KG'&`G@*cE@Gb)%"cF$da-$!f-$),6e0"4'p6Bh*TF(3@C'&
  4363. dBA"eBR0YCh)J3(0`26%d-$B`-aK28d&6CA45CA0eE@9%DA0`BA4MD&"bEf-9C'&
  4364. dBA"eBR0YCh)J3(0`26J`1$!a'%p638GPG&*PFh9YC84TFh"KG'0S8(*[Ba9NBA4
  4365. KF(9LFfeRFL"!Fh!p1$!i-$)26e0"4AKPBh9dC89fC@jd&Q4KG'&`G@*cE@Gb)%"
  4366. cF$da-$!i-$-+6e0"4'p&GQ9ZG"CNBA4KF(9LFfeRFL"!Fh!p-6!`1$!d$Np638e
  4367. KDf9$EfjdCAKd&@4KG'&`G@*cE@Gb)%"cF$e$-$J`04428d&6CA4$GA*bC@jd4'P
  4368. KE'9MG"9NBA4KF(9LFfeRFL"!Fh!p-M!h-$%86e0"4f9d3h9bFQ9ZG%4TB@aPBh3
  4369. 9C'&dBA"eBR0YCh)J3(0`263`0c!b&%p638&fB@PXB@*XC84TB@aPBh4c&@4KG'&
  4370. `G@*cE@Gb)%"cF$dd-$F`-a&28d&(CA4%D@&XC@0d5@jQEa9NBA4KF(9LFfeRFL"
  4371. !Fh!p36!h-$3E6e0"3ACKD@aKBQaP4'PKE'9MG%0[C'9-DA0d&@4KG'&`G@*cE@G
  4372. b)%"cF$dd-$F`04P(CA4%C@CKG@ad8f0bDA"dD@jR8hPcG'9Y&@4KG'&`G@*cE@G
  4373. b)%"cF$dd-6!`-4P6CA4%C@CKG@ad8f0bDA"dD@jR8hPcG'9Y&@4KG'&`G@*cE@G
  4374. b)%"cF$dd-6!`-K9(CA46Bh*TF(4TEQG$Efe`EfjPER39C'&dBA"eBR0YCh)J3(0
  4375. `26Ja-$!c(%GPG&0MFQP`G'PZCe0jFh4PE8CbEfe6G'pbC@39C'&dBA"eBR0YCh)
  4376. J3(0`26Ja-$!d$dGPEQ9bD@08Ee*PB@a*4"9NBA4KF(9LFfeRFL"!Fh!p1$%`-$8
  4377. 28Q9KE&4[4f9ZCA*TBdP%&@4KG'&`G@*cE@Gb)%"cF$di-6!`0K*0B@YP4f9ZCA*
  4378. TBd0[ER4PH(39C'&dBA"eBR0YCh)J3(0`28-a-$!h"N&65@jTG"CNBA4KF(9LFfe
  4379. RFL"!Fh!p-@-a-$!a%8&68f9d8fpeFQ0P8h4jE'9c&@4KG'&`G@*cE@Gb)%"cF$d
  4380. d-6!`-K&"8dGPG&0[GA*MC90dH@aPFa9NBA4KF(9LFfeRFL"!Fh!p0$%`-$-9390
  4381. (CA46Eh9bBf96G(PXC8jKE@9c&@4KG'&`G@*cE@Gb)%"cF$dd-6!`0!!!!%B36R9
  4382. YBQ9b)'pQ)'eKBh*[Fdp$6P3&+LSU+LT-8e4$#NeKBh*[)'jKE@938e45#89iF'&
  4383. ZFfP[EP"69&)&+LSU+LT-8e4&!!!"!!!!*Km!!#8I!!!!QJ$,!M3G"!!!!"`!FJ!
  4384. #C'0YC!!"!"TYH'*Y!!%!-P408%`!!!"+!q`!!!!!!!!!b[m%!)J!"3!!$43!b[m
  4385. )!'S!#!!!&-i!b[j)!qJ!'!!!(C!!!-ViZ!2S!#-!!#69!-X!!!4KCACd!Q4N$d&
  4386. `F'aP4ACPER3JF'&MD`T28d%J6@&MFQpc"'eiBQeF+3:
  4387.  
  4388.  
  4389. --========================_14317516==_--
  4390. =========================================================================
  4391. Date:         Tue, 10 May 1994 00:50:59 -0700
  4392. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4393. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4394. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  4395. Subject:      Re: Referencing an Application by its id type
  4396.  
  4397. At 00:35 5/10/94 -0700, Jon Pugh wrote:
  4398. >Proj.pi IS run as an application, which is why the alias points to it.
  4399. >That's how THINK works.  It runs your application directly out of your
  4400. >project file with your program's signature and the type 'PROJ' instead of
  4401. >'APPL'.  I'm not surprised that it crashes, since most of the resources are
  4402. >in the file Proj.pi.rsrc.
  4403. >
  4404. >Now, that doesn't explain the strange reason that if you have THINK open
  4405. >but your project isn't running, AppleScript directs your script to it
  4406. >instead of your project.  I don't know why this happens, but once it does,
  4407. >you are screwed and have to reboot to send scripts to your project again.
  4408. >
  4409. >What I think is happening is this.  AppleScript tries launching your
  4410. >project, but notices it's not an APPL.  So it grabs the signature of the
  4411. >file 'KAHL' and launches that, getting THINK Project Manager.  Now it
  4412. >stuffs that in some internal cache and you are hosed for the duration.
  4413. >
  4414. >How's that?
  4415.  
  4416. It works for me.  Thanks a lot, Jon.  [What I hadn't noticed was that
  4417. restarting caused AppleScript to stop running TPM instead of the project.]
  4418.  
  4419.    --John
  4420.  
  4421. --
  4422. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  4423. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  4424. =========================================================================
  4425. Date:         Tue, 10 May 1994 04:44:22 CDT
  4426. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4427. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4428. From:         Dave Hillman <d-hillman@UCHICAGO.EDU>
  4429. Subject:      Help: Save and Parse from Log
  4430.  
  4431. Hello there,
  4432.  
  4433. I'd appreciate it if an AppleScript expert could help me with this.  I'm
  4434. just learning it myself.  The script follows, and my problem follows it.
  4435.  
  4436.  
  4437. set crlf to (ASCII character 13) & (ASCII character 10)
  4438. set http_10_header to "HTTP/1.0 200 OK" & crlf & "Server: MacHTTP" & crlf & =
  4439. =AC
  4440.         "MIME-Version: 1.0" & crlf & "Content-type: text/html" & crlf & crlf
  4441.  
  4442. launch application "Scriptable Text Editor"
  4443.  
  4444. -- Takes http_search_args and appends them, with date, to a specified file
  4445.  
  4446. tell application "Scriptable Text Editor"
  4447.         open alias pathname:filename
  4448.         set contents to contents & crlf & (current date) & http_search_args
  4449.         close alias pathname:filename
  4450. end tell
  4451.  
  4452. -- Returns specified dummy HTML upon completion of data submission
  4453.  
  4454. return http_10_header & "<a href=3D%20/thanks.html%20><h2>Thank You</h2></a>=
  4455. "
  4456.  
  4457.  
  4458. What I would like this to do, is take the http_search_args from MacHTTP
  4459. [World Wide Web server for Mac] and append them to a specified file.  Right
  4460. now, I'm only interested in saving Comments from a feedback form, but I
  4461. want to do more.
  4462.  
  4463. http_search_args is a variable predefined by MacHTTP.  Can anyone help me
  4464. with why this launches the Text Editor, but is profoundly uninterested in
  4465. doing anything with it?
  4466.  
  4467. any help greatly appreciated,
  4468. dave
  4469.  
  4470. ps it lives at "http://crossroads.rh.uchicago.edu/Logs/Annotate.html"
  4471.  
  4472. ________________________________________________________________________
  4473. Dave Hillman           "Some people love the sound of their own voice...
  4474. d-hillman@uchicago.edu      I love the sound of
  4475.                                  my own footsteps."
  4476. =========================================================================
  4477. Date:         Tue, 10 May 1994 10:01:28 EDT
  4478. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4479. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4480. From:         "Sean M. Joyce" <sjoyce@HEIDELBERG.EDU>
  4481. Subject:      Scripts for searching files
  4482.  
  4483. Hello.  Please forgive this novice on the list or point me with a flame to
  4484. the nearest AppleScript FAQ.
  4485.  
  4486. I'm looking for information on how to write an AppleScript which will
  4487. search a text file for a character string, and then return the line(s)
  4488. containing that string to the user (a la "grep").  I would like to get such
  4489. a script to work in conjunction with MacHTTP to provide for searchable
  4490. files, like phonebooks.  I've looked at the sample script provided with
  4491. MacHTTP, which teaches me how to accept a character string for which to
  4492. search, but cannot figure out how to then look for this string in a text
  4493. file.
  4494.  
  4495. TIA for any help.
  4496. -----
  4497. Sean Joyce
  4498. sjoyce@heidelberg.edu
  4499. =========================================================================
  4500. Date:         Tue, 10 May 1994 07:18:42 -0700
  4501. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4502. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4503. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  4504. Subject:      Re: Help: Save and Parse from Log
  4505.  
  4506. >set crlf to (ASCII character 13) & (ASCII character 10)
  4507. >set http_10_header to "HTTP/1.0 200 OK" & crlf & "Server: MacHTTP" & crlf &=
  4508.  =AC
  4509. >        "MIME-Version: 1.0" & crlf & "Content-type: text/html" & crlf & crl=
  4510. f
  4511. >
  4512. >launch application "Scriptable Text Editor"
  4513. >
  4514. >-- Takes http_search_args and appends them, with date, to a specified file
  4515. >
  4516. >tell application "Scriptable Text Editor"
  4517. >        open alias pathname:filename
  4518. >        set contents to contents & crlf & (current date) & http_search_args
  4519. >        close alias pathname:filename
  4520. >end tell
  4521. >
  4522. >-- Returns specified dummy HTML upon completion of data submission
  4523. >
  4524. >return http_10_header & "<a href=3D%20/thanks.html%20><h2>Thank You</h2></a=
  4525. >"
  4526. >
  4527. >
  4528. >What I would like this to do, is take the http_search_args from MacHTTP
  4529. >[World Wide Web server for Mac] and append them to a specified file.  Right
  4530. >now, I'm only interested in saving Comments from a feedback form, but I
  4531. >want to do more.
  4532.  
  4533. You are telling the application to set ITS contents.  Try telling the
  4534. document to set its contents, instead.
  4535.  
  4536. tell application "Scriptable Text Editor"
  4537.     open alias pathname:filename
  4538.     tell document 1
  4539.         set contents to contents & crlf & (current date) & http_search_args
  4540.     end tell
  4541.     close alias pathname:filename
  4542. end tell
  4543.  
  4544.  
  4545. ------
  4546. Or...(probably faster).  Take advantage of the fact that when Scriptable
  4547. Text Editor opens a document, it puts an insertion point at the end of the
  4548. document.  selection is a property of the application:
  4549.  
  4550. tell application "Scriptable Text Editor"
  4551.     open alias pathname:filename
  4552.         set selection to crlf & (current date) & http_search_args
  4553.     close alias pathname:filename
  4554. end tell
  4555.  
  4556. --John
  4557.  
  4558. --
  4559. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  4560. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  4561. =========================================================================
  4562. Date:         Tue, 10 May 1994 10:40:40 -0400
  4563. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4564. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4565. From:         Luis Muench <muench@SOLIX.FIU.EDU>
  4566. Subject:      AS in the MacHTTP package
  4567.  
  4568. Just downloaded the HTTP package for the AS.  I am currently upgrading
  4569. from version zip of AS ( never had it).  There is something missing from
  4570. the package, aint there!!  Where is the editing environment?  All that was
  4571. in the package was the AS extension, the Frontmost ext and some stuff in
  4572. the scripting additions folder.  How is one supposed to edit/compile the
  4573. scripts? Pardon my ignorance :^)
  4574.  
  4575. ---___--__    _/        _//    _// |    "My Karma Ran Over My Dogma"
  4576.    ___--     _/        _/_/  _/_/  |         muench@solix.fiu.edu
  4577.             _/        _/ _/_/ _/   |         muench@servax.fiu.edu
  4578. -_-_---    _/        _/  _/  _/    |     Luis Muench - graphic artist
  4579.           _/_/_/    _/      _/     |    FloridaInternationalUniversity
  4580. =========================================================================
  4581. Date:         Tue, 10 May 1994 10:57:03 -0500
  4582. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4583. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4584. From:         King Rhoton <king@ACPUB.DUKE.EDU>
  4585. Subject:      Re: AS in the MacHTTP package
  4586.  
  4587. >Just downloaded the HTTP package for the AS.  I am currently upgrading
  4588. >from version zip of AS ( never had it).  There is something missing from
  4589. >the package, aint there!!  Where is the editing environment?  All that was
  4590. >in the package was the AS extension, the Frontmost ext and some stuff in
  4591. >the scripting additions folder.  How is one supposed to edit/compile the
  4592. >scripts? Pardon my ignorance :^)
  4593.  
  4594. To edit it, you have to buy it.  Only enough for runtime is freely
  4595. redistributable.
  4596.  
  4597. King Rhoton                                             king@acpub.duke.edu
  4598. =========================================================================
  4599. Date:         Tue, 10 May 1994 10:12:30 -0500
  4600. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4601. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4602. From:         Fred Terry <pfterry@LKS.CSI.COM>
  4603. Subject:      Re: AS in the MacHTTP package
  4604. In-Reply-To:  Your message of "Tue, 10 May 94 10:40:40 EDT"
  4605.  
  4606. >Just downloaded the HTTP package for the AS.  I am currently upgrading
  4607. >from version zip of AS ( never had it).  There is something missing from
  4608. >the package, aint there!!  Where is the editing environment?  All that was
  4609. >in the package was the AS extension, the Frontmost ext and some stuff in
  4610. >the scripting additions folder.  How is one supposed to edit/compile the
  4611. >scripts? Pardon my ignorance :^)
  4612.  
  4613. You have to buy the AppleScript Scripting Kit or Developer's Kit or System 7.5
  4614. when it's available. You can also get it by buying either Danny Goodman's
  4615. Complete AppleScript Handbook or Schneider's Tao of AppleScript.  :-(
  4616.  
  4617. Ain't no free lunch.
  4618.  
  4619. Or get tickle (ftp://ftp.msen.com/pub/vendor/ice/tickle). It's free or
  4620. shareware, and you can edit and compile the scripts with it. Even includes OSA
  4621. versions of tcl and jpl. This is closer to free.
  4622.  
  4623. pf
  4624. =========================================================================
  4625. Date:         Tue, 10 May 1994 07:44:07 -0700
  4626. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4627. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4628. From:         Russell Gum <rgum@AG.ARIZONA.EDU>
  4629. Subject:      Excel script problems
  4630.  
  4631. Help please. I am a frustrated rookie scripter.
  4632.  
  4633. How do you select a spreadsheet in excel from several that are open to be
  4634. the active sheet.  The following script opens two sheets but I cant seem to
  4635. navigate back and forth between them without closing one each time I want
  4636. to switch.  Surely there must be a better way. I want to use bound sheets
  4637. in a workbook but I thought I had better start with the simple case first.
  4638. I am trying to write a script that will delete rows in one worksheet as a
  4639. result of information in the other.
  4640.  
  4641. tell application "Microsoft Excel"
  4642.         if not (exists Document "ExcelHack") then
  4643.                 open alias "B:as:ExcelHack"
  4644.         end if
  4645.  
  4646.         if not (exists Document "tn") then
  4647.                 open alias "B:as:tn"
  4648.         end if
  4649.  
  4650.         activate Window "ExcelHack"  This does not work tn is still active
  4651. (on top)
  4652.  
  4653.         set selection to Range "R2C2:R101C2"
  4654.  
  4655.         set foo to selection
  4656.         set poo to value of foo
  4657.  
  4658.         item 100 of poo
  4659.  
  4660. end tell
  4661.  
  4662.  
  4663. Also poo is a list of lists.ie {{"1"},{"2"}}  is there a simple way to get
  4664. the values into a simple list?
  4665.  
  4666.  
  4667. Thanks
  4668. =========================================================================
  4669. Date:         Tue, 10 May 1994 08:47:46 -0700
  4670. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4671. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4672. From:         Benjamin Broder <bbroder@HSC.USC.EDU>
  4673. Subject:      Re: AS Kit differences
  4674.  
  4675. I've finally (duh) figured out the difference between the
  4676. AppleScript Software Development Toolkit (R0175Z/B through
  4677. APDA 800-282-2732 $199) and the AppleScript Scripter's Kit
  4678. (M1730LL/A retail $189, available for less through most
  4679. mail order houses).
  4680.  
  4681. The product available from APDA includes the CDROM with
  4682. much additional information, the other product does not.
  4683. Both kits include 4 800K disks (3 AppleScript + 1 FrontMost)
  4684. and three manuals: Getting Started with AppleScript,
  4685. The AppleScript Language Guide (English Dialect), and the
  4686. AppleScript Guide to Scriptable Applications.
  4687.  
  4688. Both include a redistribution license.
  4689.  
  4690. Ben
  4691.  
  4692. --
  4693. bbroder@hsc.usc.edu     Benjamin Broder    FAX (818) 457-4100
  4694. USC Institute for Health Promotion and Disease Prevention Research
  4695. 1000 S. Fremont Ave. #641, Alhambra, CA 91803-1358 (818) 457-4029
  4696. =========================================================================
  4697. Date:         Tue, 10 May 1994 13:19:54 -0400
  4698. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4699. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4700. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  4701. Subject:      AppleScript 1.1 vs. Easy Open 1.0.3
  4702.  
  4703.     I'm been having one of the strangest conflicts since I received my
  4704. 8100 upgrade last month. For some reason there appears to be a conflict
  4705. between Easy Open 1.0.3 and the Script Editor 1.1. Any scripts that I
  4706. try to work with are formatted in a very screwed up manner. Things like
  4707. one word per line, sometimes only a " on a line. It makes it impossible
  4708. to work with unless I don't load the Easy Open extension. Has anyone
  4709. seen or heard of this before? Anyone know of a fix, or a newer version
  4710. of MEO? Thanks for the assistance.
  4711.  
  4712. -Hades
  4713. =========================================================================
  4714. Date:         Tue, 10 May 1994 12:28:37 -0500
  4715. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4716. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4717. From:         Fred Terry <pfterry@LKS.CSI.COM>
  4718. Subject:      Re: AppleScript 1.1 vs. Easy Open 1.0.3
  4719. In-Reply-To:  Your message of "Tue, 10 May 94 13:19:54 EDT"
  4720.  
  4721. >    I'm been having one of the strangest conflicts since I received my
  4722. >8100 upgrade last month. For some reason there appears to be a conflict
  4723. >between Easy Open 1.0.3 and the Script Editor 1.1. Any scripts that I
  4724. >try to work with are formatted in a very screwed up manner. Things like
  4725. >one word per line, sometimes only a " on a line. It makes it impossible
  4726. >to work with unless I don't load the Easy Open extension. Has anyone
  4727. >seen or heard of this before? Anyone know of a fix, or a newer version
  4728. >of MEO? Thanks for the assistance.
  4729.  
  4730. Now that you mention it, I have seen this before on my IIci. At the time, I
  4731. attributed the problem to another program. I'll try this out tonight.
  4732.  
  4733. pf
  4734.  
  4735.  
  4736. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  4737. Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
  4738. =========================================================================
  4739. Date:         Tue, 10 May 1994 10:30:45 -0800
  4740. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4741. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4742. From:         Lance Ware {VOXEL Guru} <lware@VOXEL.COM>
  4743. Subject:      Getting a list of Open Application in Frontier
  4744.  
  4745. Is there an easy way to do it?
  4746.  
  4747.  
  4748. Lance
  4749.  
  4750. ___________________
  4751. Lance Ware
  4752. IS Manager
  4753. VOXEL
  4754. Laguna Hills, CA
  4755. =========================================================================
  4756. Date:         Tue, 10 May 1994 12:46:58 -0500
  4757. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4758. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4759. From:         Fred Terry <pfterry@LKS.CSI.COM>
  4760. Subject:      new files on gaea
  4761.  
  4762. Over the last few days, I've been dropping the latest versions of some
  4763. programs on gaea. These include a new versions of Jon's Commands, Script
  4764. Tools, OSA Menu (yah!), and Acid Jazz. You'll also find a demo version of an
  4765. interesting utility called Torquemada's Ghost.
  4766.  
  4767. Enjoy.
  4768.  
  4769. pf
  4770.  
  4771. ftp://gaea.kgs.ukans.edu/applescript/osaxen/jons-commands-111-as.hqx
  4772. ftp://gaea.kgs.ukans.edu/applescript/osaxen/ScriptTools1.3.sit.hqx
  4773. ftp://gaea.kgs.ukans.edu/applescript/addons/OSA_Menu_1.0.1.sit.hqx
  4774. ftp://gaea.kgs.ukans.edu/applescript/addons/Acid_Jazz_1.2v2.sit.hqx
  4775. ftp://gaea.kgs.ukans.edu/applescript/scriptableapps/TorquemadasGhost.sea.hqx
  4776.  
  4777.  
  4778.  
  4779. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  4780. Fred Terry  Cadence Design Systems  pfterry@lks.csi.com  +1 913 841 1283
  4781. =========================================================================
  4782. Date:         Tue, 10 May 1994 11:41:23 PDT
  4783. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4784. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4785. From:         Neil Rest <neilrest@ECOTONE.TOAD.COM>
  4786. Subject:      Re: AppleScript FAQ
  4787.  
  4788. I have indexed several of the major ftp sites, and > gaea.kgs.ukans.edu < is
  4789.  alone
  4790. in having an "applescript" directory.  In addition to a 32K faq, there are
  4791. subdirectories of addons, docs, osaxen, scriptableapps and scripts.
  4792.  
  4793.         Neil
  4794. =========================================================================
  4795. Date:         Tue, 10 May 1994 15:52:23 -0500
  4796. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4797. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4798. From:         Herb Schilling <hschilling@LERC.NASA.GOV>
  4799. Subject:      FrontMost Windows Problems
  4800.  
  4801. Hello,
  4802.  
  4803.  I have been using FrontMost quite a bit lately and while I like the idea,
  4804. it seems like there are lots of things that frustrate me. Are others having
  4805. problems also?
  4806.  
  4807.  The worst problem I have is that in overriding the close handler for
  4808. windows, sometimes I goof up and there seems to be no way to quit the
  4809. script you created or even FrontMost since it keeps giving you an error
  4810. message everytime it tries to close the windows. These  windows are
  4811. impossible to get rid of!!!
  4812.  
  4813.  Thanks.
  4814.  
  4815. --
  4816. Herb Schilling NASA Lewis Research Center 21000 Brookpark Road Mail Stop 142-4
  4817. Cleveland Ohio 44135 (216) 433-8955 Fax:(216)433-8000 
  4818. sshws@convx1.lerc.nasa.gov
  4819. AppleLink: SCHILLING.H
  4820. =========================================================================
  4821. Date:         Tue, 10 May 1994 13:08:07 -0700
  4822. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4823. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4824. From:         Doug Baron <userland@NETCOM.COM>
  4825. Subject:      Re: Getting a list of Open Application in Frontier
  4826. In-Reply-To:  <199405101741.KAA21432@mail.netcom.com> from "Lance Ware {VOXEL
  4827.               Guru}" at May 10, 94 10:30:45 am
  4828.  
  4829. Here's how:
  4830.  
  4831.     for ix = 1 to sys.countApps ()
  4832.         name = sys.getNthApp (ix)
  4833.         fspec = sys.getAppPath (name)
  4834.  
  4835. Obviously, you could put the resulting filespecs into a list, but you
  4836. usually wouldn't need to.
  4837.  
  4838. Doug
  4839. =========================================================================
  4840. Date:         Tue, 10 May 1994 13:41:56 U
  4841. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4842. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4843. From:         Paul Farrah <paul_farrah1@QM.CLARIS.COM>
  4844. Subject:      Re: FrontMost Windows Proble
  4845.  
  4846.         Reply to:   RE>FrontMost Windows Problems
  4847. > I have been using FrontMost quite a bit lately and while I like the idea,
  4848. >it seems like there are lots of things that frustrate me. Are others having
  4849. >problems also?
  4850.  
  4851. Ah, yes, Frontmost is quite a struggle, isn't it? If you have a close
  4852. handler, you must include a continue close in the handler, and I read
  4853. somewhere that the continue close statement MUST be the FIRST statement in
  4854. your close handler, otherwise you run into the problem you are experiencing.
  4855.  
  4856. I think there are some limitations in Frontmost that make it more of a
  4857. struggle than it needs to be. The problems I have quite often are making such
  4858. and such an object aware of other objects in a project. For example, if I
  4859. want the script of a window to know about a script I loaded in the project, I
  4860. have to pass the variable of the loaded script to the window's script so that
  4861. it can attach it to a property (or a variable). Also, it's quite a pain to
  4862. have to always open a window in order for the project to see the objects
  4863. within it (or even to see the window itself).
  4864.  
  4865. I'm working on an error handler script that has a simple debug window where I
  4866. can display handler names and parameter values at the entry and exit of every
  4867. handler. It's great for tracing variables and the execution path. It's
  4868. working very well, but I need to work out a few bugs. When I get it done,
  4869. I'll post it around.
  4870. -Paul
  4871. =========================================================================
  4872. Date:         Tue, 10 May 1994 17:25:29 -0500
  4873. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4874. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4875. Comments:     <Parser> E: "From:"/"Sender:" field is missing.
  4876. From:         Undetermined origin c/o Postmaster <POSTMASTER@DARTCMS1.BITNET>
  4877. Subject:      Re: AS Kit differences
  4878. In-Reply-To:  Your message of "Tue, 10 May 1994 08:47:46 MDT."
  4879.  
  4880.  <9405101803.AA21269=DARTCMS1.DARTMOUTH.EDU!owner-macscrpt@HEARN.nic.SURFnet.nl
  4881. @
  4882.  charon.cwi.nl>
  4883. Date: Tue, 10 May 1994 23:24:00 +0200
  4884. From: Peter de Waal <Peter.de.Waal@cwi.nl>
  4885.  
  4886.  
  4887. Benjamin Broder writes:
  4888.  
  4889. > Both kits include 4 800K disks (3 AppleScript + 1 FrontMost)
  4890.  
  4891. What exactly does Frontmost do?
  4892.  
  4893. --- Peter de Waal, CWI, Amsterdam ---
  4894. =========================================================================
  4895. Date:         Tue, 10 May 1994 15:17:50 -0700
  4896. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4897. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4898. From:         Matthew Frederick <mfred@AMUG.ORG>
  4899. Subject:      Re: AppleScript1.1 again
  4900.  
  4901. >>     Aside from the person who said he convinced Apple to send it to him,
  4902. >> the only other way to get the Finder Scripting Extension is to buy the
  4903. >> AppleScript Scripter's Kit. Costs about $130-$150 from MacConnection and
  4904. >> other popular mail-order houses.
  4905.  
  4906.  
  4907. NO! The Scripter's Kit DOES NOT contain the scriptable Finder! The
  4908. AppleScript Developer's kit from APDA does.
  4909.  
  4910. Sorry about the vehemence, but I wasted $149 on the Scripter's Kit when I
  4911. discovered it had no CD-ROM and no Scriptable Finder. It only contains ASCR
  4912. 1.1, Frontmost, and some sample scripts.
  4913.  
  4914.  
  4915. Boy, saving the world is hard work!
  4916.  
  4917. Matthew
  4918.  
  4919. ------------------------------------------------------------------------------
  4920. The last guy on the planet to see the "Visualize Whirled Peas" bumper sticker.
  4921. ------------------------------------------------------------------------------
  4922. Matthew Frederick, Phoenix, Arizona, USA (mfred@amug.org)
  4923. =========================================================================
  4924. Date:         Tue, 10 May 1994 15:27:47 -0800
  4925. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4926. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4927. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  4928. Subject:      Re: FrontMost the saga
  4929.  
  4930. >What exactly does Frontmost do?
  4931.  
  4932. AppleScript applets have no inherent user interface. True you can have
  4933. dialog boxes query the user for information and you can control other
  4934. applications that have user interfaces but there is no user interface for
  4935. an applet, until ...
  4936.  
  4937. That's where FrontMost comes into play. FrontMost (or now FaceScan or some
  4938. equally yukky name like that) gives you windows and menus and fields and
  4939. buttons and all the elements that you would need to construct a user
  4940. interface, and it is all AppleScript controlled. FrontMost lets you build
  4941. an applet with a user interface.
  4942.  
  4943. As someone who used HyperCard to build all my one of a kind tools, AS 1.0
  4944. didn't offer me much since there was no way to interact with it. AS 1.1
  4945. with FrontMost allows me to build applets with a user interface. I can now
  4946. use AppleScript and FrontMost in place of HyperCard.
  4947.  
  4948. Kee Nethery
  4949.  
  4950. _________________________________________________________________
  4951. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  4952. =========================================================================
  4953. Date:         Wed, 11 May 1994 11:34:57 +0800
  4954. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4955. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4956. From:         Craig Richmond <craig@ECEL.UWA.EDU.AU>
  4957. Subject:      Re: AppleScript 1.1 vs. Easy Open 1.0.3
  4958.  
  4959. At  1:19 PM 10/5/94 -0400, Brian V. Hughes wrote:
  4960. >    I'm been having one of the strangest conflicts since I received my
  4961. >8100 upgrade last month. For some reason there appears to be a conflict
  4962. >between Easy Open 1.0.3 and the Script Editor 1.1. Any scripts that I
  4963. >try to work with are formatted in a very screwed up manner. Things like
  4964. >one word per line, sometimes only a " on a line. It makes it impossible
  4965. >to work with unless I don't load the Easy Open extension. Has anyone
  4966. >seen or heard of this before? Anyone know of a fix, or a newer version
  4967. >of MEO? Thanks for the assistance.
  4968.  
  4969. That is very interesting.  I had Easy Open installed to have a look at it.
  4970. I was also having problems with the Script editor in Native Mode, but not
  4971. emulated mode.  I had finally had Easy Open do the wrong thing for me one
  4972. too many times (plus it had rarely actually done anything useful for me) so
  4973. I trashed it.
  4974.  
  4975. After being in 68000 for a couple of days, I swapped back to PPC and it was
  4976. all working.  I assumed it must have been a phase of the moon bug, but now
  4977. that you have pointed this out, that was the only other real change that I
  4978. made!
  4979.  
  4980. I think we can safely say that Script Editor under PPC is broken with Easy
  4981. Open Installed.
  4982.  
  4983. Craig
  4984.  
  4985. --
  4986. Craig Richmond, Computer Officer, ECEL Computing Services  +61 9 380 1405
  4987. The University of Western Australia      or 380 3860 Email for FAX Number
  4988. craig@ecel.uwa.edu.au Dvorak Keyboards RULE!  "Messes are only acceptable
  4989. if users make them.  Applications aren't allowed this freedom" I.M.VI 2-4
  4990. =========================================================================
  4991. Date:         Tue, 10 May 1994 21:27:51 -0600
  4992. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4993. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4994. From:         Brian Gaines <gaines@FSC.CPSC.UCALGARY.CA>
  4995. Subject:      aete and miscellaneous events
  4996.  
  4997. Anybody come across this problem?
  4998.  
  4999. In my aete I have simple entries accepting the 'reqd', 'core' and 'misc'
  5000. event suites as a whole which according to IM IAC allows AppleScript to
  5001. pick up the terminology for the whole suite from the aeut resource. This
  5002. works fine for 'reqd' and 'core' but not for 'misc'. The strange thing
  5003. is that AppleScript understands the 'Do Script' terminology fine but not
  5004. 'Cut', 'Paste', 'Show', etc, but the "Open Script" facility of the script
  5005. editor shows none of these including "Do Script". Is this some peculiarity
  5006. of AppleScript that does not conform to IM IAC, or am I missing something?
  5007.  
  5008. b.
  5009.  
  5010. Brian Gaines              Knowledge Science Institute, University of Calgary
  5011. gaines@cpsc.ucalgary.ca   Calgary, Alberta, Canada T2N 1N4
  5012. =========================================================================
  5013. Date:         Tue, 10 May 1994 22:11:32 -0700
  5014. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5015. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5016. From:         Jon Pugh <jonpugh@NETCOM.COM>
  5017. Subject:      Re: AppleScript1.1 again
  5018.  
  5019. >NO! The Scripter's Kit DOES NOT contain the scriptable Finder! The
  5020. >AppleScript Developer's kit from APDA does.
  5021. >
  5022. >Sorry about the vehemence, but I wasted $149 on the Scripter's Kit when I
  5023. >discovered it had no CD-ROM and no Scriptable Finder. It only contains ASCR
  5024. >1.1, Frontmost, and some sample scripts.
  5025.  
  5026. There are 2 versions of the Scripter's Kit.  The one with FrontMost does
  5027. not contain the Scriptable Finder.  The one with FaceSpan (FrontMost
  5028. renamed) includes the Scriptable Finder.
  5029.  
  5030. Needless to say, this sucks.  Especially if you get the old one.
  5031.  
  5032. >Boy, saving the world is hard work!
  5033.  
  5034. You got that right!
  5035.  
  5036. Jon
  5037. =========================================================================
  5038. Date:         Tue, 10 May 1994 22:11:38 -0700
  5039. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5040. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5041. From:         Jon Pugh <jonpugh@NETCOM.COM>
  5042. Subject:      Re: aete and miscellaneous events
  5043.  
  5044. >In my aete I have simple entries accepting the 'reqd', 'core' and 'misc'
  5045. >event suites as a whole which according to IM IAC allows AppleScript to
  5046. >pick up the terminology for the whole suite from the aeut resource. This
  5047. >works fine for 'reqd' and 'core' but not for 'misc'. The strange thing
  5048. >is that AppleScript understands the 'Do Script' terminology fine but not
  5049. >'Cut', 'Paste', 'Show', etc, but the "Open Script" facility of the script
  5050. >editor shows none of these including "Do Script". Is this some peculiarity
  5051. >of AppleScript that does not conform to IM IAC, or am I missing something?
  5052.  
  5053. There is no Misc suite.  It's actually called Miscellaneous Standard
  5054. Events.  There is a Rez file on the AppleScript CD which has all the Misc
  5055. events defined so that you can copy and paste them into your suites.
  5056. They're not hard to recreate though, so just put them into your suite.  I
  5057. think Do Script is probably already defined in the AppleScript suite or
  5058. somewhere like that.
  5059.  
  5060. Jon
  5061. =========================================================================
  5062. Date:         Wed, 11 May 1994 08:59:08 +0100
  5063. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5064. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5065. From:         Johan Solve <johan.solve@ITN.HH.SE>
  5066. Subject:      Re: FrontMost Windows Problems
  5067.  
  5068. Could we see some example scripts involving FrontMost?
  5069.  
  5070. _______________________________________________________________________
  5071.           "
  5072.    JOHAN SOLVE                   Department of Science and Technology
  5073.    <johan.solve@itn.hh.se>       Halmstad University, Sweden
  5074. =========================================================================
  5075. Date:         Wed, 11 May 1994 05:41:52 -0500
  5076. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5077. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5078. From:         Peter de Waal <Peter.de.Waal@CWI.NL>
  5079. Subject:      Re: FrontMost the saga plus a AS 1.1 question
  5080. In-Reply-To:  Your message of "Tue, 10 May 1994 15:27:47 MDT."
  5081.  
  5082.  <9405110458.AA28991=DARTCMS1.DARTMOUTH.EDU!owner-macscrpt@HEARN.nic.SURFnet.nl
  5083. @
  5084.  charon.cwi.nl>
  5085. Date: Wed, 11 May 1994 11:39:34 +0200
  5086. Sender: Peter.de.Waal@cwi.nl
  5087.  
  5088.  
  5089. In message <9405110458.AA28991=DARTCMS1.DARTMOUTH.EDU!owner-macscrpt@HEARN.nic.
  5090. SURFnet.nl@charon.cwi.nl>you write:
  5091.  
  5092. > >What exactly does Frontmost do?
  5093.  
  5094. > That's where FrontMost comes into play. FrontMost (or now FaceScan or some
  5095. > equally yukky name like that) gives you windows and menus and fields and
  5096. > buttons and all the elements that you would need to construct a user
  5097. > interface, and it is all AppleScript controlled. FrontMost lets you build
  5098. > an applet with a user interface.
  5099.  
  5100. Is there documentation available on Frontmost?
  5101.  
  5102. On a related matter: I installed AS 1.1 from the MacHTTP package last
  5103. night, but now the Script Editor does not recognize dictionaries any
  5104. more. If I try to open the dictionary of an osax or of a scriptable
  5105. application, I get an error message saying that the required resources
  5106. are missing from the extension or application.
  5107.  
  5108. I'm running this on a Performa 400. I removed AS 1.0 and the Apple
  5109. Event manager extensions from my system folder, and replaced the
  5110. scripting additions with those that came with the HTTP package.
  5111. Is there a know conflict between AS 1.1 and the Script Editor that
  5112. ships with 1.0?
  5113.  
  5114. I also noticed that during startup I get an icon for Apple Event
  5115. Manager (although such an extension no longer exists) and that the
  5116. icon of frontmost is placed in front of the AS 1.1 icon. Is this
  5117. normal?
  5118.  
  5119. --- Peter de Waal, CWI, Amsterdam <Peter.de.Waal@cwi.nl> ---
  5120. =========================================================================
  5121. Date:         Wed, 11 May 1994 08:18:56 -0500
  5122. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5123. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5124. From:         Herb Schilling <hschilling@LERC.NASA.GOV>
  5125. Subject:      Re: FrontMost Windows Proble
  5126.  
  5127. Paul,
  5128.  
  5129. Thanks for the reply.
  5130.  
  5131. >Paul Farrah <paul_farrah1@QM.CLARIS.COM>  wrote:
  5132.  
  5133. >Ah, yes, Frontmost is quite a struggle, isn't it? If you have a close
  5134. >handler, you must include a continue close in the handler, and I read
  5135. >somewhere that the continue close statement MUST be the FIRST statement in
  5136. >your close handler, otherwise you run into the problem you are experiencing.
  5137. >
  5138.  
  5139. Where did you read that ? I have been doing otherwise and at least this has
  5140. not caused be problems.
  5141.  
  5142. >I think there are some limitations in Frontmost that make it more of a
  5143. >struggle than it needs to be. The problems I have quite often are making such
  5144. >and such an object aware of other objects in a project. For example, if I
  5145. >want the script of a window to know about a script I loaded in the project, I
  5146. >have to pass the variable of the loaded script to the window's script so that
  5147. >it can attach it to a property (or a variable). Also, it's quite a pain to
  5148. >have to always open a window in order for the project to see the objects
  5149. >within it (or even to see the window itself).
  5150. >
  5151.  
  5152. Yes, yes, yes!!! I am running into the same problems.
  5153.  
  5154.  
  5155. >I'm working on an error handler script that has a simple debug window where I
  5156. >can display handler names and parameter values at the entry and exit of every
  5157. >handler. It's great for tracing variables and the execution path. It's
  5158. >working very well, but I need to work out a few bugs. When I get it done,
  5159. >I'll post it around.
  5160.  
  5161.  
  5162. Thanks for the offer. I look forward to it.
  5163.  
  5164. It's such a shame that we have these problems since I really want to use
  5165. FrontMost for quickly prototyping an app. I thought I could whip up the UI
  5166. quickly to test with users but all my problems FrontMost are making me
  5167. second guess my decision. I guess we should not expect too much from a
  5168. version 1.0 app.
  5169.  
  5170.  
  5171. I have run into all these problems while trying to do a ( I thought ) very
  5172. simple thing. I want to have a non-modal dialog window that the user can
  5173. make visible and hide. There should be only copy of this window at any one
  5174. time and the position,etc... of the window should be the same when the user
  5175. re-opens it as when it was closed. The window should visibility and
  5176. position should also be maintained from app launch to app launch. I am
  5177. getting closer to make this work but it has taken me about 12 hours and
  5178. lots of head scratching. I thought this would be easy. ( Famous last words.
  5179. )
  5180.  
  5181.  
  5182. --
  5183. Herb Schilling NASA Lewis Research Center 21000 Brookpark Road Mail Stop 142-4
  5184. Cleveland Ohio 44135 (216) 433-8955 Fax:(216)433-8000 
  5185. sshws@convx1.lerc.nasa.gov
  5186. AppleLink: SCHILLING.H
  5187. =========================================================================
  5188. Date:         Wed, 11 May 1994 13:24:59 +0000
  5189. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5190. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5191. From:         Mark Armitage <armitage@MARKSMAC.DEMON.CO.UK>
  5192. Subject:      AS 1.1
  5193.  
  5194. Help,
  5195.  
  5196. I bought the runtime version of AS 1.0 and got the new Event Manager and AS
  5197. extension (1.0.3 & 1.1 respectively) from the MacHTTP package.  All works
  5198. okay EXCEPT if I try to use the Script Editor to open up a programs
  5199. dictionary at which point I get an error meesage - something about not
  5200. being able to find a required resource!  Can anyone help me?  Does this
  5201. mean that I need an update to the Script editor as well (I don't suppose
  5202. anyone out there knows where I can get one for free do they?).  Ah if only
  5203. I could afford the CD all would be right with the world (and I would have a
  5204. scriptable finder which is something else I would really like to get my
  5205. mitts on).
  5206.  
  5207. Hope someone out there can help me,
  5208.  
  5209. Thanks in advance,
  5210.  
  5211. Mark.
  5212.  
  5213. -------------------------------------------------------------------------------
  5214. -
  5215. Mark Armitage        armitage@marksmac.demon.co.uk
  5216.  
  5217. Please reply directly - my newsreader is a pain...
  5218. -------------------------------------------------------------------------------
  5219. -
  5220. =========================================================================
  5221. Date:         Wed, 11 May 1994 09:09:25 -0400
  5222. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5223. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5224. From:         George Brown <george@PARTECH.COM>
  5225. Organization: PAR Government Systems Corp
  5226. Subject:      Re: Scripts for searching files
  5227.  
  5228. In article <9405101427.AA18634@partech.com>, you wrote:
  5229.  
  5230. > Hello.  Please forgive this novice on the list or point me with a flame to
  5231. > the nearest AppleScript FAQ.
  5232. >
  5233. > I'm looking for information on how to write an AppleScript which will
  5234. > search a text file for a character string, and then return the line(s)
  5235. > containing that string to the user (a la "grep").  I would like to get such
  5236. > a script to work in conjunction with MacHTTP to provide for searchable
  5237. > files, like phonebooks.  I've looked at the sample script provided with
  5238. > MacHTTP, which teaches me how to accept a character string for which to
  5239. > search, but cannot figure out how to then look for this string in a text
  5240. > file.
  5241. Not that this will help you learn AppleScript, but a program called MacGREP
  5242. will do what you want.  The POC is:
  5243.     Ken R. Lunde
  5244.     klunde@macc.wisc.edu
  5245. All depends what you want more, to learn AS or search files with regular
  5246. expressions.  Hope this helps...
  5247. --
  5248. george@partech.com
  5249. George Brown
  5250. PAR Government Systems Corp.
  5251. 220 Seneca Turnpike
  5252. New Hartford, NY 13413
  5253. =========================================================================
  5254. Date:         Wed, 11 May 1994 08:55:38 -0400
  5255. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5256. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5257. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  5258. Subject:      Re: FrontMost the saga plus a AS 1.1 question
  5259. In-Reply-To:  <no.id> from "Peter de Waal" at May 11, 94 05:41:52 am
  5260.  
  5261. --Peter de Waal wrote:
  5262. >
  5263. >Is there documentation available on Frontmost?
  5264.  
  5265.     To get the manual, which is called AppleScript Building Interfaces,
  5266. you have to buy either the Scripter's Kit ($140 at MacConnection) or the
  5267. Developer's Kit ($199 from APDA).
  5268.  
  5269. >On a related matter: I installed AS 1.1 from the MacHTTP package last
  5270. >night, but now the Script Editor does not recognize dictionaries any
  5271. >more. If I try to open the dictionary of an osax or of a scriptable
  5272. >application, I get an error message saying that the required resources
  5273. >are missing from the extension or application.
  5274.  
  5275.     Hmm... I have no idea why this would be happening. Are you sure you
  5276. have version 1.1 of the Script Editor? You could run into all kinds of
  5277. problems if you try to use SE 1.0 with AS 1.1.
  5278.  
  5279. >I'm running this on a Performa 400. I removed AS 1.0 and the Apple
  5280. >Event manager extensions from my system folder, and replaced the
  5281. >scripting additions with those that came with the HTTP package.
  5282. >Is there a know conflict between AS 1.1 and the Script Editor that
  5283. >ships with 1.0?
  5284.  
  5285.     It seems I need to read ahead in articles before I post. ;-> I don't
  5286. know of any known conflicts (Mr. Pugh might), but I would think that
  5287. this is the root of your current problem.
  5288.  
  5289. >I also noticed that during startup I get an icon for Apple Event
  5290. >Manager (although such an extension no longer exists) and that the
  5291. >icon of frontmost is placed in front of the AS 1.1 icon. Is this
  5292. >normal?
  5293.  
  5294.     Well, seeing the AEM icon is normal since the AS 1.1 extension also
  5295. contains the AEM, however, I'm kind of surprised that the Fronmost icon
  5296. (please note the spelling and capitalization. It's not spelled
  5297. FrontMost, although the new product is spelled FaceSpan ;) would appear
  5298. before the AS icon. Do you have anything managing your inits? I would
  5299. check it to see how it's trying to load things.
  5300.  
  5301. -Hades
  5302. =========================================================================
  5303. Date:         Wed, 11 May 1994 09:14:26 -0600
  5304. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5305. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5306. From:         "Harrison, Jim" <Harrison.Jim@TMC.TULANE.EDU>
  5307. Subject:      Re: FrontMost the saga plus a AS 1.1 question
  5308.  
  5309. Peter de Wall and Brian Hughes wrote:
  5310.  
  5311. >>On a related matter: I installed AS 1.1 from the MacHTTP package last
  5312. >>night, but now the Script Editor does not recognize dictionaries any
  5313. >>more. If I try to open the dictionary of an osax or of a scriptable
  5314. >>application, I get an error message saying that the required resources
  5315. >>are missing from the extension or application.
  5316. >
  5317. >    Hmm... I have no idea why this would be happening. Are you sure you
  5318. >have version 1.1 of the Script Editor? You could run into all kinds of
  5319. >problems if you try to use SE 1.0 with AS 1.1.
  5320.  
  5321. I've seen this, too. Script Editor 1.0.1 that shipped with AS 1.0 does not
  5322. appear to be compatible with the AS 1.1 extension. Removing AS 1.1 and
  5323. reinstalling the AS 1.0 extension recovers the ability to view dictionaries.
  5324. Currently, the key to upgrading to 1.1 seems to be finding Script Editor 1.1.
  5325. I'm resigned to watching the mail for the upgrade disk from Danny Goodman's
  5326. book.
  5327.  
  5328. Jim Harrison
  5329. Tulane University
  5330. New Orleans
  5331. =========================================================================
  5332. Date:         Wed, 11 May 1994 09:54:56 U
  5333. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5334. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5335. From:         Paul Farrah <paul_farrah1@QM.CLARIS.COM>
  5336. Subject:      Re: FrontMost Windows Probl
  5337.  
  5338.         Reply to:   RE>>FrontMost Windows Proble
  5339. >>If you have a close
  5340. >>handler, you must include a continue close in the handler, and I read
  5341. >>somewhere that the continue close statement MUST be the FIRST statement in
  5342. >>your close handler, otherwise you run into the problem you are
  5343. experiencing.
  5344. >
  5345.  
  5346. >Where did you read that ? I have been doing otherwise and at least this has
  5347. >not caused be problems.
  5348.  
  5349. Sorry, turns out I wasn't exactly correct about the continue close handler.
  5350. The info about continue close is in a scriptable text editor document named
  5351. "Frontmost Release Notes". I'm using a copy of Frontmost that was purchased
  5352. by the company I work for, so I'm not sure where the release notes came from
  5353. (i.e., what "developers kit" they came with). Here's the content of the
  5354. release notes:
  5355. ---------------------
  5356. Addendum to the Frontmost(tm) Manual & Useful Hints
  5357.  
  5358. Animated buttons: the "by swap" hilite style
  5359.  
  5360. Any icon can be used as a button, but if its hilite style is set (by way of a
  5361. script or the message box) to "by swap", then it will use its assigned
  5362. artwork as its unhilited display, and the artwork with an id that is 1
  5363. greater as its hilited display.
  5364.  
  5365. Scrolling panes: scrollable box objects
  5366.  
  5367. A window can have one scroll pane made from a box object. First establish the
  5368. window items that are to be within the scroll pane, then draw a box the size
  5369. of the intended scroll pane. Next, using the message box or a script, set the
  5370. "scrollable" property of the box to true, at which moment vertical and
  5371. horizontal scrollbars will become visible, and the window items will
  5372. disappear from around the box; the window items can then be seen only by
  5373. scrolling the box. The scrollpane "contains" all window items whose index
  5374. numbers are less than its own. Scrolling the pane sends the box a "scrolled"
  5375. event; you can get and set the "scroll" property, which is a point (a list of
  5376. two short integers) whose units are pixels. A box made into a scroll pane
  5377. cannot have a title or a zero-size pen. The box can be set as the growitem of
  5378. the window.
  5379.  
  5380. Tabbed listboxes and labels
  5381.  
  5382. A label, or entries in listbox that has the form "ListWithMetas", can have
  5383. tab stops. The format is:
  5384.  
  5385.     tab<dd<text tab<dd<text ...
  5386.  
  5387. where "tab" means a real tab character, "dd" is a two-digit tab-stop, "<"
  5388. tells the direction of the tab, and "text" represents your text for display.
  5389. The two digits are expressed as the number of inches (first digit) and the
  5390. number of ninths of an inch (second digit). A ninth of an inch is the same as
  5391. spacing as the snap-to grid in the window editor. The direction indicators
  5392. are: "<" for a left tab, ">" for a right tab, and "^" for a centered tab. The
  5393. tab character can be entered in one of two ways: (1) If you are assigning the
  5394. contents via a script, type "\t" where you want the tab, or concatenate one
  5395. with the "tab" predefined variable. (2) If you are typing the contents
  5396. directly into the object, open the "Key Caps" desk accessory, click the Tab
  5397. key on the displayed keyboard, then select and copy the tab character out of
  5398. the text box. The "Lists" demo project includes examples of a tabbed label
  5399. and list.
  5400.  
  5401. Continue events
  5402.  
  5403. The standard messages whose names are in the past tense are "notifications"
  5404. of events that have already occurred. Examples are "scrolled" and "hilited".
  5405. Messages whose names are in the present tense are events about to occur or
  5406. now occurring. Examples of these are "close" and "keystroke". If you write a
  5407. handler for this latter kind of message, you MUST include a "continue
  5408. <message> <parameters>" statement if you wish the default behavior of the
  5409. event to occur (you might not.) You can put the "continue" at the beginning
  5410. or end of the handler, depending upon whether you want the default behavior
  5411. to occur before or after your script.
  5412.  
  5413. Window Properties Persist after Continuing Close
  5414.  
  5415. In a window's close handler, properties of the window and its objects are
  5416. still accessable after a 'continue close' statement has been executed.  The
  5417. Music Collection (client-server) sample app makes use of this to insure that
  5418. the window contents are saved if changes were made to the window data when
  5419. the application was quit.
  5420.  
  5421. on close theObj
  5422.         continue close theObj
  5423.         update()
  5424. end close
  5425.  
  5426. The update handler checks a boolean property indicating whether the window
  5427. was "dirty" in which case the altered data will be transferred from the
  5428. window items back to the database.  This update check must occur after the
  5429. close message is continued, since the "dirty" property may not get set until
  5430. frontmost itself sees the close message.
  5431.  
  5432. Quit event is deferred
  5433.  
  5434. The "quit" command generates a quit event, but the ultimate effect of that
  5435. event is deferred until the script that contains the command runs to
  5436. completion. For example, you might want to display a dialog, asking the user
  5437. if he wishes to run or quit, then act on that wish (note that the Welcome
  5438. window must be modal for this example to work):
  5439.  
  5440. --Open the welcoming dialog, letting the user run or quit:
  5441. open window "Welcome" returning {closing item:theItem}
  5442.  
  5443. This binds the variable 'theItem' to the closing item's description.
  5444.  
  5445. if title of theItem is "OK" then
  5446.         open window "Untitled"
  5447. else if title of theItem is "Cancel" then
  5448.         quit
  5449. end if
  5450.  
  5451. This script will continue to run in response to the quit handler, and will
  5452. not terminate the application until the script is finished. Any commands
  5453. following this sequence will be executed.
  5454.  
  5455. Removing text styles
  5456.  
  5457. To remove styles or to be sure that text is assigned without styles, copy it
  5458. "as string", as in "(contents of textbox 1) as string".
  5459.  
  5460. Multiple growitems
  5461.  
  5462. If you set a textbox as the growitem of a window, and want another object to
  5463. grow with it, align the right (or bottom) edge of the object with the right
  5464. (or bottom) edge of the growitem. But note that the "right edge" of a
  5465. textbox, for the purpose of alignment with the growitem, is the actual right
  5466. edge minus 15 pixels (for the scrollbar). The same is true of listboxes.
  5467.  
  5468. The "make" hierarchy
  5469.  
  5470. A window may not have items added with the make command if it is in the midst
  5471. of executing any scripts.  In practical terms this means that a window cannot
  5472. add items to itself, nor may a script which is called by the window.  Other
  5473. windows may indeed do so, however.
  5474.  
  5475. Movie with no artwork (yet)
  5476.  
  5477. You might wish to create a QuickTime movie object whose artwork property is
  5478. none--perhaps a movie browser. To do so, you must initially specify a movie,
  5479. then set the artwork to none. When the object is drawn, a dialog asks you to
  5480. specify a movie; do so. Then open the Message window, and type a command like
  5481. this:
  5482.  
  5483. set the artwork of movie 1 to none
  5484.  
  5485. Recovery after a system crash
  5486.  
  5487. While you work on a project, Frontmost maintains an invisible temporary file
  5488. that holds your recent changes. If your computer crashes for any reason, upon
  5489. restart there will be items in the Trash. That temporary file will be among
  5490. them. Its name will be changed to a large number, but it is a genuine
  5491. Frontmost project that can be opened and saved under a new name.
  5492.  
  5493. Use properties, not global variables
  5494.  
  5495. If you want to share data between different scripts in the project, use
  5496. properties.  Global variables are accessible only in the script in which they
  5497. are defined.  Properties can be accessible from anywhere.  For example, if
  5498. the project script contains a property called theProp:
  5499.  
  5500. property theProp : "this is theProp"
  5501.  
  5502. this property is accessible from any window or window item script by using
  5503. the keyword "my".  For example, from a button script,
  5504.  
  5505. display dialog my theProp
  5506.  
  5507. Using 'my' means that Frontmost will look first in the window item script,
  5508. then the window script, then the project script for a property called
  5509. theProp.  If it is not found in any of those scripts, an error will result.
  5510.  
  5511. If you want to access a property of a different window or window item than
  5512. the one you're in, you can refer to it this way:
  5513.  
  5514. get theProp of window "Other"
  5515.  
  5516. Sample Frontmost Application Notes
  5517.  
  5518. o The dialog server tester script has a minor change from listing in the
  5519. manual.  The statement: closeDialogServer() has been moved outside of the if
  5520. statement so that it is always executed before the script is finished.  This
  5521. fixes a bug that normally allowed the dialog server to stay open.
  5522.  
  5523. o If droppable Frontmost applications (those having an open handler in the
  5524. project script) do not highlight and launch when files are dropped on them,
  5525. you should rebuild your desktop file.
  5526.  
  5527. o The window title string and the font menu are not readable because it comes
  5528. out in a roman font. The reason why is that Frontmost force to set the font
  5529. to Chicago.
  5530. =========================================================================
  5531. Date:         Wed, 11 May 1994 12:40:25 -0600
  5532. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5533. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5534. From:         Shannon V Spires <svspire@SOMNET.SANDIA.GOV>
  5535. Subject:      Frontmost Questions
  5536. In-Reply-To:  <199405111703.LAA08365@somnet.sandia.gov> from "Paul Farrah" at
  5537.               May 11, 94 09:54:56 am
  5538.  
  5539. 1) Can Frontmost create hierarchical menus? I can't figure out
  5540. how to do it, and the manual doesn't say squat about them.
  5541.  
  5542. 2) Can a script in Frontmost send a value out to the message
  5543. windoid, like you can in Hypercard? This would sure help
  5544. debugging (I know about copying things to a "debugging" field,
  5545. but you can't send out things that aren't coercible to strings.)
  5546.  
  5547. Thanks,
  5548. Shannon
  5549. svspire@sandia.gov
  5550. =========================================================================
  5551. Date:         Wed, 11 May 1994 14:37:46 -0600
  5552. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5553. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5554. From:         Shannon V Spires <svspire@SOMNET.SANDIA.GOV>
  5555. Subject:      Frontmost Questions (A)
  5556. In-Reply-To:  <199405111703.LAA08365@somnet.sandia.gov> from "Paul Farrah" at
  5557.               May 11, 94 09:54:56 am
  5558.  
  5559. Never mind--I called SDU and got the answers to my questions.
  5560. They are both "NO". You cannot create heirarchical menus with
  5561. Frontmost and you cannot output anything to the message
  5562. window.
  5563.  
  5564. -Shannon
  5565. svspire@sandia.gov
  5566. =========================================================================
  5567. Date:         Wed, 11 May 1994 15:05:54 U
  5568. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5569. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5570. From:         Paul Farrah <paul_farrah1@QM.CLARIS.COM>
  5571. Subject:      Re: Frontmost Questions (A)
  5572.  
  5573.         Reply to:   RE>Frontmost Questions (A)
  5574. Shannon writes:
  5575.  
  5576. >I called SDU and got the answers to my questions.
  5577. >They are both "NO". You cannot create heirarchical menus with
  5578. >Frontmost and you cannot output anything to the message
  5579. >window.
  5580.  
  5581. Actually, it is possible to send output to the message window, but the data
  5582. has to be of class string (quite a limitation for debugging purposes). Try
  5583. this:
  5584.  
  5585.    set the contents of window item 6 of window "Message" to "You can do it."
  5586.  
  5587. This hits the top box of the message window. Window item 7 is the lower box.
  5588. You have to be in script execution mode (i.e., NOT in window design mode) for
  5589. this to work, but that's probably what you want anyway. I don't imagine it
  5590. would work if you are running a compiled application because the message
  5591. window probably wouldn't be copied to your application. Try it out. (This
  5592. could be a great aid to debugging; I don't know why SDU wouldn't want their
  5593. end users to know about this.)
  5594.  
  5595. If you want to make your own message window for debugging purposes, you can
  5596. get AppleScript to execute whatever message you type by running the string as
  5597. a script. For example, say you have a window named "My Message Window" with a
  5598. textbox named "message". This code will execute whatever you enter into the
  5599. textbox:
  5600.  
  5601.    run script ((contents of textbox "message" of window "My Message Window")
  5602. as string)
  5603.  
  5604. Hope this all helps.
  5605.  
  5606. -Paul
  5607. =========================================================================
  5608. Date:         Wed, 11 May 1994 17:52:54 -0600
  5609. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5610. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5611. From:         Shannon V Spires <svspire@SOMNET.SANDIA.GOV>
  5612. Subject:      Frontmost: Output to Message Window
  5613. In-Reply-To:  <199405112342.RAA28427@somnet.sandia.gov> from "Paul Farrah" at
  5614.               May 11, 94 03:05:54 pm
  5615.  
  5616. Paul Farrah writes-
  5617.  
  5618. > Actually, it is possible to send output to the message window, but the data
  5619. > has to be of class string (quite a limitation for debugging purposes). Try
  5620. > this:
  5621. >
  5622. >    set the contents of window item 6 of window "Message" to "You can do it."
  5623. >
  5624. etc...
  5625.  
  5626. Thanks a lot! It works. I had tried something like this before but the
  5627. critical "item 6" was the part I needed.
  5628.  
  5629. -Shannon Spires
  5630. svspire@sandia.gov
  5631. =========================================================================
  5632. Date:         Thu, 12 May 1994 10:25:48 +1000
  5633. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5634. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5635. From:         Neville Smythe <Neville.Smythe@ANU.EDU.AU>
  5636. Subject:      Recordable apps
  5637.  
  5638. There has been some comment about the paucity of recordable apps, a problem
  5639. for those wanting to learn how to script an app. It's also a problem for
  5640. programmers, since there are so few examples of the best way to record
  5641. events so that they can be most conveniently used.
  5642.  
  5643. I have an almost finished new version of ANUGraph, a mathematical function
  5644. plotting program, which will be fully recordable. It's still too buggy to
  5645. put up a demo on gaea yet, but if anyone is interested in seeing it , in
  5646. return for some feedback on the ae facilities provided (delta-testing?)
  5647. please contact me.
  5648.  
  5649.  
  5650. $@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?
  5651.  
  5652. Neville Smythe                         Neville.Smythe@anu.edu.au
  5653. Mathematics Department
  5654. School of Mathematical Sciences
  5655. Australian National University              Tel:   (06)-249 2709
  5656. Canberra ACT 0200 AUSTRALIA                 FAX: (61-6)-249 5549
  5657.  
  5658. $@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?
  5659. =========================================================================
  5660. Date:         Wed, 11 May 1994 20:59:02 -0700
  5661. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5662. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5663. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  5664. Subject:      Script Ed Dictionary vs PowerMac Virtual Mem
  5665.  
  5666. On my Power Mac, I find the AppleScript Script Editor's Dictionary to be
  5667. somewhat unstable with virtual memory turned on (as virtual memory should
  5668. be on a Power Mac).  By definition (almost...it ships with Power Macs) I am
  5669. running AppleScript 1.1.
  5670.  
  5671. The problem I see comes with larger 'aete' resources.  For instance, after
  5672. startup up Script Editor, the first time I look at HyperCard 2.2's
  5673. Dictionary, the window has no contents.  The second and subsequent times,
  5674. the events and classes are present, but the Suite headings are missing.
  5675. With Virtual Memory off, all is well.
  5676.  
  5677. Do I share this experience with others here?  --John
  5678.  
  5679. --
  5680. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  5681. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  5682. =========================================================================
  5683. Date:         Thu, 12 May 1994 07:44:25 +0000
  5684. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5685. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5686. From:         Wagner Luiz Truppel <wlt@MERCURIO.UC.PT>
  5687. Subject:      Danny Goodman's book - a question
  5688.  
  5689. Hi folks,
  5690.  
  5691. I have just signed on and I already need some help. Could someone tell me
  5692. the ISBN number of Danny Goodman's book on AppleScript? Actually, could
  5693. someone send the whole info, that is, title, publisher and ISBN? I'm asking
  5694. a friend in the US to purchase it for me but he's having trouble finding
  5695. it. This is sort of urgent, since my friend is leaving the US this Friday.
  5696. Thanks a lot.
  5697.  
  5698.  
  5699. Wagner Luiz Truppel
  5700. WLT@MERCURIO.UC.PT
  5701. =========================================================================
  5702. Date:         Wed, 11 May 1994 22:58:37 -0700
  5703. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5704. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5705. From:         Matthew Frederick <mfred@AMUG.ORG>
  5706. Subject:      Re: FrontMost Windows Problems
  5707.  
  5708. > I have been using FrontMost quite a bit lately and while I like the idea,
  5709. >it seems like there are lots of things that frustrate me. Are others having
  5710. >problems also?
  5711.  
  5712.  
  5713. FrontMost has about 10 million problems. I understand that Software Designs
  5714. Unlimited (the creators of FrontMost) have a new version out, called
  5715. FaceSomething (the "Something" part is unknown to me).
  5716.  
  5717. I don't know how to get ahold of them, though, so I don't know how much
  5718. this "update" helps, or what it might cost.
  5719.  
  5720. Does anyone know how to reach SDU?
  5721.  
  5722. Matthew
  5723.  
  5724. ------------------------------------------------------------------------------
  5725. The last guy on the planet to see the "Visualize Whirled Peas" bumper sticker.
  5726. ------------------------------------------------------------------------------
  5727. Matthew Frederick, Phoenix, Arizona, USA (mfred@amug.org)
  5728. =========================================================================
  5729. Date:         Thu, 12 May 1994 03:41:33 -0600
  5730. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5731. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5732. From:         Brian Hutchison <brian@HARPO.AMPR.AB.CA>
  5733. Subject:      Re: Danny Goodman's book - a question
  5734.  
  5735. >I have just signed on and I already need some help. Could someone tell me
  5736. >the ISBN number of Danny Goodman's book on AppleScript? Actually, could
  5737. >someone send the whole info, that is, title, publisher and ISBN? I'm asking
  5738. >a friend in the US to purchase it for me but he's having trouble finding
  5739. >it. This is sort of urgent, since my friend is leaving the US this Friday.
  5740. >Thanks a lot.
  5741.  
  5742. Title:          The Complete AppleScript Handbook
  5743. Author:         Danny Goodman
  5744. Publisher:      Random House, Inc.
  5745. ISBN:           0-679-79148-5
  5746.  
  5747. Hope this helps!
  5748.  
  5749. - Brian Hutchison
  5750.   brian@harpo.ampr.ab.ca
  5751. =========================================================================
  5752. Date:         Thu, 12 May 1994 02:51:08 -0700
  5753. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5754. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5755. From:         Matthew Frederick <mfred@AMUG.ORG>
  5756. Subject:      Re: Danny Goodman's book - a question
  5757.  
  5758. >...Could someone tell me
  5759. >the ISBN number of Danny Goodman's book on AppleScript? Actually, could
  5760. >someone send the whole info, that is, title, publisher and ISBN?
  5761.  
  5762. -- From the inside of the second page of the book:
  5763.  
  5764. The Complete AppleScript Handbook by Danny Goodman
  5765.  
  5766. Copyright 1993 by Danny Goodman
  5767.  
  5768. Published in the United States by Random House, Inc., New York, and
  5769. simultaneously in Canada by Random House of Canada, Limited.
  5770.  
  5771. First Edition
  5772.  
  5773. ISBN 0-679-79148-5
  5774.  
  5775.  
  5776. -- Additionally, just in case:
  5777.  
  5778. UPC  9 780679 791485 53500
  5779.  
  5780.  
  5781. Hope that helps!
  5782.  
  5783. ------------------------------------------------------------------------------
  5784. The last guy on the planet to see the "Visualize Whirled Peas" bumper sticker.
  5785. ------------------------------------------------------------------------------
  5786. Matthew Frederick, Phoenix, Arizona, USA (mfred@amug.org)
  5787. =========================================================================
  5788. Date:         Thu, 12 May 1994 06:37:31 -0500
  5789. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5790. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5791. From:         Herb Schilling <hschilling@LERC.NASA.GOV>
  5792. Subject:      Re: FrontMost Windows Problems
  5793.  
  5794. >> I have been using FrontMost quite a bit lately and while I like the idea,
  5795. >>it seems like there are lots of things that frustrate me. Are others having
  5796. >>problems also?
  5797. >
  5798. >
  5799. >FrontMost has about 10 million problems. I understand that Software Designs
  5800. >Unlimited (the creators of FrontMost) have a new version out, called
  5801. >FaceSomething (the "Something" part is unknown to me).
  5802. >
  5803.  
  5804.  
  5805. I would like to know about this !!!
  5806.  
  5807. >I don't know how to get ahold of them, though, so I don't know how much
  5808. >this "update" helps, or what it might cost.
  5809. >
  5810. >Does anyone know how to reach SDU?
  5811. >
  5812.  
  5813. Their Applelink address is SDU. I just sent them a link asking them about
  5814. FaceSpan. I will report to the mailing list the response I get.
  5815.  
  5816. --
  5817. Herb Schilling NASA Lewis Research Center 21000 Brookpark Road Mail Stop 142-4
  5818. Cleveland Ohio 44135 (216) 433-8955 Fax:(216)433-8000 
  5819. sshws@convx1.lerc.nasa.gov
  5820. AppleLink: SCHILLING.H
  5821. =========================================================================
  5822. Date:         Thu, 12 May 1994 08:53:19 -0400
  5823. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5824. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5825. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  5826. Subject:      Re: Script Ed Dictionary vs PowerMac Virtual Mem
  5827. In-Reply-To:  <no.id> from "John W. Baxter" at May 11, 94 08:59:02 pm
  5828.  
  5829. --John W. Baxter wrote:
  5830. >
  5831. >On my Power Mac, I find the AppleScript Script Editor's Dictionary to be
  5832. >somewhat unstable with virtual memory turned on (as virtual memory should
  5833. >be on a Power Mac).  By definition (almost...it ships with Power Macs) I am
  5834. >running AppleScript 1.1.
  5835.  
  5836.     Well, I had to go and turn on VM on my 8100, since I was running
  5837. without it. ;-> I think there might be some problems running Word with
  5838. VM turned on, but I'm not positive.
  5839.  
  5840. >The problem I see comes with larger 'aete' resources.  For instance, after
  5841. >startup up Script Editor, the first time I look at HyperCard 2.2's
  5842. >Dictionary, the window has no contents.  The second and subsequent times,
  5843. >the events and classes are present, but the Suite headings are missing.
  5844. >With Virtual Memory off, all is well.
  5845.  
  5846.     Well, I've opened up just about every dictionary I've got, including
  5847. Stuffit Deluxe which has one of the biggest I've seen, and I don' have
  5848. the problem you describe. It could be something particular to HyperCard
  5849. 2.2, but I haven't installed that in my Power Mac yet, so I can't check.
  5850.  
  5851. -Hades
  5852. =========================================================================
  5853. Date:         Thu, 12 May 1994 09:45:56 -0500
  5854. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5855. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5856. From:         Fred Terry <pfterry@LKS.CSI.COM>
  5857. Subject:      Eudora Script
  5858.  
  5859. Igor Livshits has contributed a Eudora script to gaea. Here's his
  5860. description...
  5861.  
  5862. >This script moves messages older than a set amount of days from the "Out"
  5863. >mailbox to the "Trash" mailbox. You may change the maximum age by holding
  5864. >the control key as the script starts.
  5865.  
  5866. You'll find it in
  5867.  
  5868. ftp://gaea.kgs.ukans.edu/applescript/scripts/TrashOldMessages.sit.hqx
  5869.  
  5870. Enjoy. Thanks, Igor!
  5871.  
  5872. pf
  5873. =========================================================================
  5874. Date:         Thu, 12 May 1994 10:26:04 -0500
  5875. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5876. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5877. From:         Chris Garrigues <cwg@MCC.COM>
  5878. Subject:      MIME messages on the list and digesifying
  5879. In-Reply-To:  <9405120404.AA14396@turtle.mcc.com>
  5880.  
  5881. I read this list as a digest rather than as individual messages, and the
  5882. occasional binhex messages are rather annoying in the middle of a digest.
  5883.  
  5884. Is there any way I can get the digest to be sent to me as a MIME-compliant
  5885. digest (multipart/digest) so that when people send some binhex, my
  5886. mailreader won't show me all the encoded stuff on my way to the following
  5887. message?
  5888.  
  5889. Chris
  5890.  
  5891.  
  5892. Chris Garrigues                              (MIME capable) cwg@mcc.com
  5893. Microelectronics and Computer Technology Corporation    +1 512 338 3328
  5894. 3500 West Balcones Center                           Fax +1 512 338 3838
  5895. Austin, TX  78759-5398          USA
  5896. =========================================================================
  5897. Date:         Thu, 12 May 1994 11:14:29 -0600
  5898. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5899. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5900. From:         Shannon V Spires <svspire@SOMNET.SANDIA.GOV>
  5901. Subject:      Re: FrontMost Windows Problems
  5902. In-Reply-To:  <199405120600.AAA04544@somnet.sandia.gov> from "Matthew
  5903.               Frederick" at May 11, 94 10:58:37 pm
  5904.  
  5905. > FrontMost has about 10 million problems. I understand that Software Designs
  5906. > Unlimited (the creators of FrontMost) have a new version out, called
  5907. > FaceSomething (the "Something" part is unknown to me).
  5908. >
  5909. > I don't know how to get ahold of them, though, so I don't know how much
  5910. > this "update" helps, or what it might cost.
  5911. >
  5912. > Does anyone know how to reach SDU?
  5913.  
  5914. Open up the about box and scroll to the bottom. Their applelink address is
  5915. sdu@applelink.apple.com
  5916.  
  5917. They told me a new version (now called FaceSpan for legal reasons) will
  5918. be out in about 2 months (!), from Apple. I'm about to bag Frontmost.
  5919. It's just too buggy to be usable, and I don't have time for them to
  5920. get their act together. Want some examples? Here:
  5921.  
  5922. FRONTMOST BUGS SO FAR (feel free to add your own):
  5923.  
  5924. 1. Really wild global behavior. This is unpredictable and hard to
  5925. reproduce, but basically properties and globals declared in
  5926. the project script cannot be reliably read or written to in
  5927. the other scripts within the project. The release notes mention that
  5928. you should use properties instead of globals. What they fail to
  5929. mention is that properties are just as broken as globals. Basically,
  5930. there are no globals in Frontmost as it now exists. This makes it almost
  5931. impossible for separate widgets and windows of a project to
  5932. refer to the same data.
  5933.  
  5934. 2. You cannot put a left parenthesis in a popup menu. It just disappears,
  5935. and causes the enabling of that item and successive items to change
  5936. unpredictably. You can put in a parenthesis item by item,
  5937. but not when you specify the menu contents as a whole.
  5938.  
  5939. 3. You cannot create hierarchical menus, either in the menubar or
  5940. popup, with Frontmost.
  5941.  
  5942. 4. Radio buttons function automatically, but they are automatically
  5943. grouped according to successive item numbers, which (of course) you
  5944. cannot change. Thus creating two separate groups of radio buttons
  5945. on the same window is at best tedious, especially if you change your
  5946. mind later. The proper way to group radio buttons is to create a property
  5947. for the buttons, into which you place a group identifier. Unfortunately,
  5948. SDU chose not to implement it this way.
  5949.  
  5950. 5. You cannot use the message box as a "results" window, outputting
  5951. data to it for debugging the way you can with Hypercard or
  5952. the Script Editor. You can write strings to the message window,
  5953. but this is pretty limiting and it's undocumented.
  5954.  
  5955. 6. Frontmost has basically no facilities for debugging. No tracer,
  5956. no stepper, no viewing of intermediate results, no nothing.
  5957.  
  5958. Time to go back to Hypercard.
  5959.  
  5960. -Shannon Spires
  5961. svspire@sandia.gov
  5962. =========================================================================
  5963. Date:         Thu, 12 May 1994 12:11:36 -0800
  5964. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5965. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5966. From:         Jon Pugh <jonpugh@NETCOM.COM>
  5967. Subject:      Re: Script Ed Dictionary
  5968.  
  5969. Two comments in this message...
  5970.  
  5971. >On my Power Mac, I find the AppleScript Script Editor's Dictionary to be
  5972. >somewhat unstable with virtual memory turned on (as virtual memory should
  5973. >be on a Power Mac).  By definition (almost...it ships with Power Macs) I am
  5974. >running AppleScript 1.1.
  5975. >
  5976. >The problem I see comes with larger 'aete' resources.  For instance, after
  5977. >startup up Script Editor, the first time I look at HyperCard 2.2's
  5978. >Dictionary, the window has no contents.  The second and subsequent times,
  5979. >the events and classes are present, but the Suite headings are missing.
  5980. >With Virtual Memory off, all is well.
  5981. >
  5982. >Do I share this experience with others here?  --John
  5983.  
  5984. Yes, but it isn't peculiar to the PowerMac.  I noticed it on my Q800 a
  5985. while ago and reported it to the proper people (notably the author, Jens
  5986. Alfke) but he hasn't gotten back to me about the cause.  He wanted to blame
  5987. someone else's code, but I suspect it has something to do with style
  5988. resources being unlocked.  Do you have colors associated with the various
  5989. AppleScript elements?
  5990.  
  5991. As for a fix, don't expect one.  Jens is working hard on OpenDoc and the
  5992. AppleScript group is down to 1 person.  You gotta love Apple.  ;(
  5993.  
  5994. I have found that simply closing and reopening the dictionary will fix the
  5995. problem for a while.  That's another clue that it is memory related, as is
  5996. the VM problem.
  5997.  
  5998.  
  5999. Item #2:
  6000. >>I'm running this on a Performa 400. I removed AS 1.0 and the Apple
  6001. >>Event manager extensions from my system folder, and replaced the
  6002. >>scripting additions with those that came with the HTTP package.
  6003. >>Is there a know conflict between AS 1.1 and the Script Editor that
  6004. >>ships with 1.0?
  6005. >
  6006. >    It seems I need to read ahead in articles before I post. ;-> I don't
  6007. >know of any known conflicts (Mr. Pugh might), but I would think that
  6008. >this is the root of your current problem.
  6009.  
  6010. I do in fact know what's happening.  In 1.0, the Script Editor (and anyone
  6011. else who cared) had to open the AS component and read the aeut resource out
  6012. for themselves.  This changed in 1.1 with the drop in dialect support.  The
  6013. aeut is now in the dialect file and there is an event to ask AppleScript
  6014. for it.  The SE 1.0.1 doesn't know about this event or the dialect files,
  6015. so it can't get the aeut to merge the app's aete with.  SE 1.1 knows to get
  6016. the aeut from AS 1.0, but not the other way around.
  6017.  
  6018. So, don't use SE 1.0.1 with AS 1.1.  A fairly cheap way to get AS 1.1 is to
  6019. call APDA and order the $20 diskette version.  It's everything you need
  6020. except FaceSpam.
  6021.  
  6022. Jon
  6023. =========================================================================
  6024. Date:         Thu, 12 May 1994 13:33:54 -0700
  6025. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6026. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6027. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6028. Subject:      Re: Script Ed Dictionary
  6029.  
  6030. >>The problem I see comes with larger 'aete' resources.  For instance, after
  6031. >>startup up Script Editor, the first time I look at HyperCard 2.2's
  6032. >>Dictionary, the window has no contents.  The second and subsequent times,
  6033. >>the events and classes are present, but the Suite headings are missing.
  6034. >>With Virtual Memory off, all is well.
  6035. >>
  6036. >>Do I share this experience with others here?  --John
  6037. >
  6038. >Yes, but it isn't peculiar to the PowerMac.  I noticed it on my Q800 a
  6039. >while ago and reported it to the proper people (notably the author, Jens
  6040. >Alfke) but he hasn't gotten back to me about the cause.  He wanted to blame
  6041. >someone else's code, but I suspect it has something to do with style
  6042. >resources being unlocked.  Do you have colors associated with the various
  6043. >AppleScript elements?
  6044.  
  6045. Yes, I have colored some of the AppleScript syntax elements (seems useful,
  6046. in a language where a word may be a variable one place, and an
  6047. application-specific keyword a few lines down...more often in a different
  6048. script, of course).  I also styled them enough so that when I was running
  6049. my IIci in black and white I could tell the langauge elements apart.
  6050.  
  6051. I have a hunch you are on the right track.
  6052.  
  6053. [I just doubled the Script Editor's partition (to 1,400K...that helped
  6054. some: now the HyperCard dictionary is empty the first time, and complete on
  6055. later tries.]
  6056.  
  6057.    --John
  6058.  
  6059. --
  6060. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  6061. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  6062. =========================================================================
  6063. Date:         Thu, 12 May 1994 16:41:06 -0500
  6064. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6065. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6066. Comments:     <Parser> E: "From:"/"Sender:" field is missing.
  6067. From:         Undetermined origin c/o Postmaster <POSTMASTER@DARTCMS1.BITNET>
  6068. Subject:      Re: Danny Goodman's book - a question
  6069. In-Reply-To:  Your message of "Thu, 12 May 1994 02:51:08 MDT."
  6070.  
  6071.  <9405121643.AA29887=DARTCMS1.DARTMOUTH.EDU!owner-macscrpt@HEARN.nic.SURFnet.nl
  6072. @
  6073.  charon.cwi.nl>
  6074. Date: Thu, 12 May 1994 22:39:10 +0200
  6075. From: Peter de Waal <Peter.de.Waal@cwi.nl>
  6076.  
  6077.  
  6078. In message <9405121643.AA29887=DARTCMS1.DARTMOUTH.EDU!owner-macscrpt@HEARN.nic.
  6079. SURFnet.nl@charon.cwi.nl>you write:
  6080.  
  6081. > >...Could someone tell me
  6082. > >the ISBN number of Danny Goodman's book on AppleScript? Actually, could
  6083. > >someone send the whole info, that is, title, publisher and ISBN?
  6084.  
  6085. On a related matter, I am looking for the address of Random House. My copy
  6086. of the book did not come with the upgrade card for AS 1.1 and I'm planning to
  6087. write them about this. Weird as it may sound, Random House's address is
  6088. nowhere to be found in the entire book (Well, it says New York - Toronto
  6089. -..., but that won't get a letter delivered).
  6090.  
  6091. --- Peter de Waal, CWI, Amsterdam ---
  6092. =========================================================================
  6093. Date:         Thu, 12 May 1994 17:08:45 -0500
  6094. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6095. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6096. From:         "William M. Porter" <WMPORTER@JETSON.UH.EDU>
  6097. Subject:      Random House address
  6098.  
  6099. Peter de Waal asks for the address of Random House, publisher of
  6100. Goodman's *Complete AppleScript Handbook.* The user survey card in the
  6101. back of the book has the following address on it,
  6102.  
  6103.         Random House Electronic Publishing
  6104.         201 East 50th Street, 3rd Floor
  6105.         New York, NY 10022
  6106.  
  6107. Of course, USA.
  6108.  
  6109. The international fax number, by the way, is 212-572-6045. That is given
  6110. on the sheet that includes the info on how to order the update. So you
  6111. might try faxing them your request with a credit card number. Just a
  6112. thought....
  6113.  
  6114. Will Porter / University of Houston
  6115. wmporter@jetson.uh.edu
  6116. =========================================================================
  6117. Date:         Thu, 12 May 1994 18:12:01 -0400
  6118. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6119. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6120. From:         revar design and consulting <revar@PHANTOM.COM>
  6121. Subject:      frontmost problem
  6122.  
  6123. hi all,
  6124. I have a problem with frontmost. I have some scripts that run fine as
  6125. buttons, but when i copy and paste the save script in to a picture window
  6126. and tell the picture to think its a button, it hangs the script. The thing
  6127. that is hanging is a command to tell quickeys to do a quickey, which works
  6128. fine in a button script or from the script editor. An ideas? I would really
  6129. apreciate it.
  6130.  
  6131. Im not on the list yet so please respond directly to:
  6132.  
  6133. revar@phantom.com
  6134. =========================================================================
  6135. Date:         Thu, 12 May 1994 20:00:52 -0500
  6136. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6137. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6138. From:         Jonathan Bauer <jhbauer@PANIX.COM>
  6139. Subject:      Re: Danny Goodman's book - a question
  6140.  
  6141. >
  6142. >On a related matter, I am looking for the address of Random House. My copy
  6143. >of the book did not come with the upgrade card for AS 1.1 and I'm planning to
  6144. >write them about this. Weird as it may sound, Random House's address is
  6145. >nowhere to be found in the entire book (Well, it says New York - Toronto
  6146. >-..., but that won't get a letter delivered).
  6147.  
  6148. Random House, Inc.
  6149. 201 E. 50th St.
  6150. New York, N.Y. 10022
  6151.  
  6152. tel # 212-751-2600
  6153.  
  6154. Order Department:
  6155.  
  6156. 4000 Hahn Road
  6157. Westminster, MD
  6158.  
  6159. tel # 301-848-1900
  6160.  
  6161. The above according to the Manhattan telephone directory.
  6162.  
  6163. ----------------------------------
  6164. Jonathan Bauer <jhbauer@panix.com>
  6165. 440 W. 41st St. #202
  6166. N.Y. N.Y.  10036
  6167. +1 212-239-5158
  6168. =========================================================================
  6169. Date:         Thu, 12 May 1994 18:58:18 -0000
  6170. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6171. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6172. From:         Gateway <Gateway@LAMG.COM>
  6173. Organization: Los Angeles Macintosh Group BBS
  6174. Subject:      NDN: Re: Danny Goodman's book - a question
  6175.  
  6176. Sorry. Your message could not be delivered to:
  6177.  
  6178. czweig,LAMG BBS (The name was not found at the remote site. Check that the
  6179. name has been entered correctly.)
  6180. =========================================================================
  6181. Date:         Thu, 12 May 1994 22:43:19 -0800
  6182. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6183. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6184. From:         Jon Pugh <jonpugh@NETCOM.COM>
  6185. Subject:      Re: FrontMost Problems
  6186.  
  6187. >Time to go back to Hypercard.
  6188.  
  6189. Amen.  Hypercard is still an excellent place to do all your basic scripting
  6190. needs.  You can mix and match all the OSA languages you have and HyperTalk.
  6191. I still do things in HyperTalk because it has many strengths, such as
  6192. string manipulation and text fields.  Simply create a stack with the stack
  6193. script in AppleScript and start using it.  Now you have a place to put your
  6194. AppleScript subroutines that you can call from HyperTalk buttons and the
  6195. like.  You can also make buttons in AppleScript if that makes more sense.
  6196.  
  6197. I think AppleScript and Hypercard perform as well as Frontier.  You still
  6198. can't step through AppleScript code, but at least it doesn't have all those
  6199. periods.  ;)
  6200.  
  6201. Jon.I.thought.it.was.usenet.Pugh
  6202. =========================================================================
  6203. Date:         Fri, 13 May 1994 09:03:20 -0400
  6204. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6205. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6206. From:         Jaime Jouris <jaime@WORLD.STD.COM>
  6207. Subject:      Re: FrontMost Windows Problems
  6208. In-Reply-To:  <199405121716.AA17126@world.std.com>
  6209.  
  6210. On Thu, 12 May 1994, Shannon V Spires wrote:
  6211.  
  6212. > FRONTMOST BUGS SO FAR (feel free to add your own):
  6213. >
  6214. > 1. Really wild global behavior. This is unpredictable and hard to
  6215. > reproduce, but basically properties and globals declared in
  6216. > the project script cannot be reliably read or written to in
  6217. > the other scripts within the project. The release notes mention that
  6218. > you should use properties instead of globals. What they fail to
  6219. > mention is that properties are just as broken as globals. Basically,
  6220. > there are no globals in Frontmost as it now exists. This makes it almost
  6221. > impossible for separate widgets and windows of a project to
  6222. > refer to the same data.
  6223.  
  6224. Wow, I've been using Frontmost/Facespan for about six months now, working
  6225. on a commercial project and I've had no such problems.  Admittedly,
  6226. globals don't work at all, but properties work just as I would expect
  6227. them to - As long as they are declared in the project script, they are
  6228. visible anywhere.  Properties declared in other scripts have to be
  6229. accessed through their objects.
  6230.  
  6231. > 4. Radio buttons function automatically, but they are automatically
  6232. > grouped according to successive item numbers, which (of course) you
  6233. > cannot change. Thus creating two separate groups of radio buttons
  6234. > on the same window is at best tedious, especially if you change your
  6235. > mind later. The proper way to group radio buttons is to create a property
  6236. > for the buttons, into which you place a group identifier. Unfortunately,
  6237. > SDU chose not to implement it this way.
  6238.  
  6239. You CAN change the item numbers of radio buttons.  Just edit the item
  6240. number in that floating palette thingy.
  6241.  
  6242. Frontmost may have glitches, but it still beats Hypercard hands down in
  6243. my opinion.
  6244.  
  6245. Jaime
  6246. jaime@world.std.com
  6247. =========================================================================
  6248. Date:         Fri, 13 May 1994 10:42:47 -0600
  6249. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6250. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6251. From:         Shannon V Spires <svspire@SOMNET.SANDIA.GOV>
  6252. Subject:      Re: FrontMost Windows Problems
  6253. In-Reply-To:  <199405131346.HAA25110@somnet.sandia.gov> from "Jaime Jouris" at
  6254.               May 13, 94 09:03:20 am
  6255.  
  6256. Jaime Jouris writes in response to my message:
  6257.  
  6258. > > 1. Really wild global behavior. This is unpredictable and hard to
  6259. > > reproduce, but basically properties and globals declared in
  6260. > > the project script cannot be reliably read or written to in
  6261. > > the other scripts within the project. The release notes mention that
  6262. > > you should use properties instead of globals. What they fail to
  6263. > > mention is that properties are just as broken as globals. Basically,
  6264. > > there are no globals in Frontmost as it now exists. This makes it almost
  6265. > > impossible for separate widgets and windows of a project to
  6266. > > refer to the same data.
  6267. >
  6268. > Wow, I've been using Frontmost/Facespan for about six months now, working
  6269. > on a commercial project and I've had no such problems.  Admittedly,
  6270. > globals don't work at all, but properties work just as I would expect
  6271. > them to - As long as they are declared in the project script, they are
  6272. > visible anywhere.  Properties declared in other scripts have to be
  6273. > accessed through their objects.
  6274.  
  6275. Our specific problem has been in regard to getting and changing property
  6276. values declared in the project script and accessed inside window item scripts.
  6277. I have some projects where it works just fine, but other projects that
  6278. are just a bit more complex where the inner script gets confused and
  6279. cannot figure out that (my propertyname) refers to the project's
  6280. property, not one belonging to the widget itself. Sometimes it gets
  6281. confused when reading the property; sometimes when it tries to change it.
  6282.  
  6283. > > 4. Radio buttons function automatically, but they are automatically
  6284. > > grouped according to successive item numbers, which (of course) you
  6285. > > cannot change. Thus creating two separate groups of radio buttons
  6286. > > on the same window is at best tedious, especially if you change your
  6287. > > mind later. The proper way to group radio buttons is to create a property
  6288. > > for the buttons, into which you place a group identifier. Unfortunately,
  6289. > > SDU chose not to implement it this way.
  6290. >
  6291. > You CAN change the item numbers of radio buttons.  Just edit the item
  6292. > number in that floating palette thingy.
  6293.  
  6294. You're absolutely right. I had tried this before and it always went back
  6295. to the number it was set to before, but it seems that if there's enough
  6296. items already, it DOES change it. It also seems to change the item number
  6297. of the item which already has the new number you're typing in, so be
  6298. aware of this side effect. Thanks for setting me straight.
  6299.  
  6300. > Frontmost may have glitches, but it still beats Hypercard hands down in
  6301. > my opinion.
  6302.  
  6303. It has a lot more potential than Hypercard, but Hypercard is a stable
  6304. platform and Frontmost just isn't yet.
  6305.  
  6306. -Shannon
  6307. svspire@sandia.gov
  6308. =========================================================================
  6309. Date:         Fri, 13 May 1994 10:55:08 -0600
  6310. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6311. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6312. From:         Shannon V Spires <svspire@SOMNET.SANDIA.GOV>
  6313. Subject:      More Frontmost Problems
  6314. In-Reply-To:  <199405120600.AAA04544@somnet.sandia.gov> from "Matthew
  6315.               Frederick" at May 11, 94 10:58:37 pm
  6316.  
  6317. Here's a really cool Frontmost bug I forgot yesterday:
  6318.  
  6319. If you RUN a project that puts up a modal dialog and you forget
  6320. to create some kind of Quit handler for it, you're dead. Sunk.
  6321. Finis. You can't use the menus; you can't click Stop in the
  6322. control window. Cmd-period does nothing. You can type option-
  6323. cmd-shift-esc, which will nicely kill not only the running
  6324. project but also Frontmost as a whole, so if you haven't saved
  6325. your work, you're dead. Cool huh? It gets even better--even
  6326. if you avoid modal dialogs (like all good little user interface
  6327. designers are supposed to do ;-) , if Frontmost runs out of
  6328. memory, it puts up its OWN modal dialog which frequently won't
  6329. go away even if you click its OK button. Since it's modal, it
  6330. still nicely locks out the menus and the control window.
  6331.  
  6332. Moral: Increase the Frontmost memory allocation and always save
  6333. your work before Running a project.
  6334.  
  6335. Sorry if I sound like I'm just griping here. I think Frontmost
  6336. has a lot of potential--that's why we started using it in the
  6337. first place. I just wish they would clean it up so I don't have
  6338. to spend all my time on workarounds.
  6339.  
  6340. -Shannon
  6341. svspire@sandia.gov
  6342. =========================================================================
  6343. Date:         Fri, 13 May 1994 16:47:13 U
  6344. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6345. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6346. From:         Roy Rapoport <rsr@INETLINK.BERKSYS.COM>
  6347. Subject:      Time Out
  6348.  
  6349. Time Out
  6350. I've got an AppleScript script that works on an FM Pro Database.  Problem is
  6351. the database is fairly big, so it seems to time out after a while (AppleEvent
  6352. Timed Out).  Now, I *know* the program works -- I exported 100 records from
  6353. the dbase (about 7300 records) and ran it on the smaller db, and it worked
  6354. flawlessly.
  6355.  
  6356. So what's causing this? Is there any way I can avoid it?
  6357.  
  6358. -roy
  6359. =========================================================================
  6360. Date:         Fri, 13 May 1994 18:17:58 -0700
  6361. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6362. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6363. From:         David Ray <daver@NETCOM.COM>
  6364. Subject:      Re: Time Out
  6365.  
  6366. >Time Out
  6367. >I've got an AppleScript script that works on an FM Pro Database.  Problem is
  6368. >the database is fairly big, so it seems to time out after a while (AppleEvent
  6369. >Timed Out).  Now, I *know* the program works -- I exported 100 records from
  6370. >the dbase (about 7300 records) and ran it on the smaller db, and it worked
  6371. >flawlessly.
  6372. >
  6373. >So what's causing this? Is there any way I can avoid it?
  6374.  
  6375. Use the timeout command.
  6376.  
  6377. Tell app "Myapp"
  6378.   do something
  6379. end tell
  6380.  
  6381. Normally you will get an apple event timeout if after 30 seconds
  6382. the "do something" statement isn't completed. (Technically, if an
  6383. apple event is not returned after 30 seconds). You can change this
  6384. 30 second default by:
  6385.  
  6386. Tell app "Myapp"
  6387.   with timeout of 300 seconds  -- Change apple event time limit to 5 minutes
  6388.     do something
  6389.   end timeout
  6390. end tell
  6391.  
  6392. -Dave
  6393.  
  6394. ------------------------------------------------------------------------------
  6395. David Ray                Dream Designs          Music Composition
  6396. daver@netcom.com         PO Box 5631            Interactive Multimedia
  6397. 510-527-9010             Berkeley CA 94705      Virtual Worlds
  6398. =========================================================================
  6399. Date:         Fri, 13 May 1994 22:17:42 EDT
  6400. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6401. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6402. From:         VictorOJ@AOL.COM
  6403. Subject:      How?
  6404.  
  6405. How do you unsubscribe?
  6406. =========================================================================
  6407. Date:         Fri, 13 May 1994 22:33:56 -0700
  6408. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6409. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6410. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6411. Subject:      Re: Time Out
  6412.  
  6413. >Time Out
  6414. >I've got an AppleScript script that works on an FM Pro Database.  Problem is
  6415. >the database is fairly big, so it seems to time out after a while (AppleEvent
  6416. >Timed Out).  Now, I *know* the program works -- I exported 100 records from
  6417. >the dbase (about 7300 records) and ran it on the smaller db, and it worked
  6418. >flawlessly.
  6419. >
  6420. >So what's causing this? Is there any way I can avoid it?
  6421.  
  6422. FileMaker can be "a little" slow handling Apple events.
  6423.  
  6424. Immediate solution
  6425.  
  6426. with timeout of nnn seconds
  6427.    your message to FileMaker goes here
  6428. end timeout
  6429.  
  6430. where nnn is some suitably large number (try 600 <10 minutes> or more to
  6431. start, since you already know that one minute is too short).
  6432.  
  6433. Longer-term solution:  if possible, create a FileMaker script which does
  6434. the time-consuming job, and trigger that from your AppleScript script.  You
  6435. can get some ***dramatic*** speedups this way (one example:  a show xxx
  6436. taking about 4 minutes was effectively immediate as a FileMaker script).
  6437.  
  6438. There may also be a faster way to express the AppleScript form, if you
  6439. can't create a suitable FileMaker script.
  6440.  
  6441.    --John
  6442.  
  6443. --
  6444. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  6445. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  6446. =========================================================================
  6447. Date:         Sat, 14 May 1994 13:45:05 -0800
  6448. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6449. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6450. From:         Brian Hall <mspace@NETCOM.COM>
  6451. Subject:      Wanted: Comments on a new scriptable utility
  6452.  
  6453. Wanted:
  6454.  
  6455. Users of AppleScript/Frontier/etc to critique/comment on
  6456. scripting/recording support in a new communications utility.
  6457.  
  6458. Send name/address/email/other contact information and a brief description
  6459. of how you use scripting in your day to day activities to any of the below
  6460. email addresses.
  6461.  
  6462. Also specify what communictions you currently script and/or would like to
  6463. script. ie, voice, fax, data, email, paging, etc.
  6464.  
  6465. Thanks!
  6466.  
  6467. __________________________________________________________________________
  6468. Brian Hall                                     Internet: mspace@netcom.com
  6469. Mark/Space Softworks                             AppleLink, AOL: MARKSPACE
  6470. Macintosh connectivity software.   Goodies at ftp.netcom.com in pub/mspace
  6471. =========================================================================
  6472. Date:         Sat, 14 May 1994 16:48:40 -0700
  6473. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6474. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6475. From:         David Ray <daver@NETCOM.COM>
  6476. Subject:      Re: Wanted: Comments on a new scriptable utility
  6477.  
  6478. >Users of AppleScript/Frontier/etc to critique/comment on
  6479. >scripting/recording support in a new communications utility.
  6480.  
  6481. Good. Sounds like me.
  6482.  
  6483. >Send name/address/email/other contact information and a brief description
  6484. >of how you use scripting in your day to day activities to any of the below
  6485. >email addresses.
  6486.  
  6487. David Ray
  6488. PO Box 5631, Berkeley, CA 94705
  6489. 510-527-9010
  6490. daver@netcom.com
  6491.  
  6492. I use Applescript extensively, for my own daily computer use as well as
  6493. consulting jobs of writing scripts. Applications I have scripted include
  6494. Eudora, Filemaker Pro, Microphone Pro, Anarchie, Stuffit Deluxe, and others.
  6495. I have also used Applescript to control non-scriptable applications including
  6496. ZTerm and Fetch by using various scripting additions. I was also a beta
  6497. tester for the TCP/IP scripting addition by Atul Butte.
  6498.  
  6499. Some of my Applescript scripts and apps include:
  6500.  
  6501. Type/creator changer - Drag and drop file type/creator changer
  6502. Find string - Searches text files for a string, displays file name and line
  6503.               number (similar to unix utility Grep)
  6504. Add to Apple Menu - Drag and drop a file to add an alias of it in the menu
  6505. InterSLIP Autodialer - Adds redial feature to InterSLIP
  6506. Get mail (ZTerm) - Downloads mail spool using unix shell and Zmodem
  6507. Get mail (Eudora) - Downlaods mail over a SLIP connection using Eudora
  6508. Sort E-mail - Sorts Eudora's "in" mail to other mailboxes for listserv use
  6509. Send Files - Stuffs, uploads and ftp's files in a folder to a remote ftp
  6510.              site using Stuffit, Microphone Pro, unix shell, Zmodem
  6511. Get Sumex File - Retrieves a file on sumex-aim (or mirror site) with format
  6512.              as used in comp.sys.mac.digest, uses Anarchie and TCP/IP.
  6513. Do script - Run this from OSA menu from any application, it will bring up
  6514.             a diaog box to run an OSA script, then execute it and put the
  6515.             result into the current application.
  6516. Oblique Strategies - Displays one of ~120 phrases/fortunes from Brian Eno's
  6517.             Oblique Strategies
  6518.  
  6519.  
  6520. >Also specify what communictions you currently script and/or would like to
  6521. >script. ie, voice, fax, data, email, paging, etc.
  6522.  
  6523. Mostly Zmodem up/dowload, wait for"string"/send text"string2", for
  6524. unix shell commands, or TCP/IP based programs for e-mail, ftp, etc.
  6525.  
  6526. -Dave
  6527. =========================================================================
  6528. Date:         Sun, 15 May 1994 15:26:00 -0700
  6529. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6530. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6531. From:         "Dannette Coleman,
  6532.               Keyano College (403) 791 4822" <S203022@ACAD.KEYANOC.AB.CA>
  6533. Subject:      Remove from list
  6534.  
  6535. Please remove me from your mailing list.  Thank you.
  6536. =========================================================================
  6537. Date:         Sun, 15 May 1994 23:40:13 -0700
  6538. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6539. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6540. From:         Matthew Frederick <mfred@AMUG.ORG>
  6541. Subject:      Re: More Frontmost Problems
  6542.  
  6543. >Here's a really cool Frontmost bug I forgot yesterday:
  6544. >
  6545. >If you RUN a project that puts up a modal dialog and you forget
  6546. >to create some kind of Quit handler for it, you're dead. Sunk.
  6547. >Finis. You can't use the menus; you can't click Stop in the
  6548. >control window. Cmd-period does nothing.
  6549.  
  6550.  
  6551. Here's a pretty simple solution that will quit the script but leave you in
  6552. FrontMost. Use OSA Menu for quick and easy access to running instant
  6553. scripts. Then write and compile this pup in Script Editor:
  6554.  
  6555. tell application "FrontMost"
  6556.      quit
  6557. end tell
  6558.  
  6559. Save it in your "Universal Scripts" folder, and you're set.
  6560.  
  6561.  
  6562. Wisdom from someone who locks FrontMost up a dozen times every day!
  6563.  
  6564.  
  6565. Of course, there is SOME merit in saving your project before running it...  ;)
  6566.  
  6567.  
  6568. Matthew
  6569.  
  6570. ------------------------------------------------------------------------------
  6571. The last guy on the planet to see the "Visualize Whirled Peas" bumper sticker.
  6572. ------------------------------------------------------------------------------
  6573. Matthew Frederick, Phoenix, Arizona, USA (mfred@amug.org)
  6574. =========================================================================
  6575. Date:         Mon, 16 May 1994 10:38:30 -0500
  6576. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6577. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6578. From:         Jonathan Bauer <jhbauer@PANIX.COM>
  6579. Subject:      AppleScript & MIDI
  6580.  
  6581. Does anyone know if AppleScript will interact with either the Apple MIDI
  6582. Manager or the Opcode MIDI System (OMS)?  Specifically, is there a way to
  6583. get AS to recognize MIDI data?
  6584.  
  6585. For example, can I have MIDI 'note on' (or program change, or whatever)
  6586. signal sent from a remote computer and interpreted by AppleScript to
  6587. trigger a macro or have another application open a file?
  6588.  
  6589. The problem arises because ethernet and appletalk conflict with MIDI and
  6590. thus there is no way to have a network running at the same time as any
  6591. software that requires MIDI. The project I am working on must run on two
  6592. separate computers (one of the applications will not function in the
  6593. background) and the applications must communicate.
  6594.  
  6595. thanks,
  6596.  
  6597. /jonathan
  6598.  
  6599. ----------------------------------
  6600. Jonathan Bauer <jhbauer@panix.com>
  6601. 440 W. 41st St. #202
  6602. N.Y. N.Y.  10036
  6603. +1 212-239-5158
  6604. =========================================================================
  6605. Date:         Mon, 16 May 1994 10:46:38 -0500
  6606. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6607. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6608. From:         Herb Schilling <hschilling@LERC.NASA.GOV>
  6609. Subject:      Frontmost: How to detect drag in list?
  6610.  
  6611. Hello,
  6612.  
  6613.  Frontmost allows you to drag items in a list. Unfortunately, I don't see
  6614. any way to detect this. There is no "drag" handler. I need to keep my list
  6615. order in sync with another part of my GUI. Is there a way to do this ? I
  6616. can only think of using idle handlers.
  6617.  
  6618. --
  6619. Herb Schilling NASA Lewis Research Center 21000 Brookpark Road Mail Stop 142-4
  6620. Cleveland Ohio 44135 (216) 433-8955 Fax:(216)433-8000 
  6621. sshws@convx1.lerc.nasa.gov
  6622. AppleLink: SCHILLING.H
  6623. =========================================================================
  6624. Date:         Mon, 16 May 1994 14:51:15 -0400
  6625. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6626. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6627. From:         revar design and consulting <revar@PHANTOM.COM>
  6628.  
  6629. hi all I have a few specific questions.
  6630.  
  6631. first off is there a scriptable screen capture utility avaliable? id like
  6632. to be able to specify where it captures by cordinates of the screen.
  6633.  
  6634. the second question is how do i determine the path of an open file. I know
  6635. i can get the path by opening the file with choose file, but id like to
  6636. figure out a get path command for and open file so i can do a save as to a
  6637. different folder location which depends on the path of the original file.
  6638.  
  6639. thanks for the help
  6640.  
  6641.  
  6642. revar@panix.com
  6643.  
  6644. *******************************************************************************
  6645. *
  6646. revar@phantom.com
  6647. revar@panix.com
  6648. "talk" me at-revar@dialup.access.net
  6649.  
  6650. -----BEGIN PGP PUBLIC KEY BLOCK-----
  6651. Version: 2.3
  6652.  
  6653. mQBPAi3TYkcAAAECALROm3qC8ss4o12Yvoai1FtvzcunehnLJCq49wZ9tMLqdGfaBP7VhjwVK8bD
  6654. Hn48ml4OVowDl7icNROk9pllLFUAEQEAAbABh7QXcmV2YXIgPHJldmFyQHBhbml4LmNvbT6wAQM=
  6655. =iRRZ
  6656. -----END PGP PUBLIC KEY BLOCK-----
  6657. =========================================================================
  6658. Date:         Mon, 16 May 1994 17:23:57 -0500
  6659. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6660. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6661. From:         Herb Schilling <hschilling@LERC.NASA.GOV>
  6662. Subject:      Script handlers strangeness in Frontmost
  6663.  
  6664.  Hello,
  6665.  
  6666.  Can anyone out see what I am doing wrong or if I am not can they give a
  6667. work around for what I want to do?
  6668.  
  6669.  I am trying to call a handler of a script object I created at the
  6670. application level from a window script. The call to the handler in the
  6671. script object is fine but when I call another handler in the same script
  6672. object from the handler, Frontmost  tells me that the <<script>> does not
  6673. know how to handle the message, PrivateRoutine. Somehow, I have a feeling
  6674. that the call to PrivateRoutine is being done in  the context of the window
  6675. script so it never gets to the thing1 object but this is a guess and I
  6676. don't see why this should be so.
  6677.  
  6678. ===========================
  6679. In application script
  6680. ===========================
  6681. on run()
  6682.      set thing1 to CreateThing()
  6683. end run
  6684.  
  6685. on CreateThing() -- "constructor" of thing
  6686.         script thing
  6687.                 on PrivateRoutine()
  6688.                         -- do something
  6689.                 end PrivateRoutine
  6690.  
  6691.                 on PublicRoutine()
  6692.                         PrivateRoutine()
  6693.                 end PublicRoutine
  6694.  
  6695.         end script
  6696. end CreateThing
  6697.  
  6698.  
  6699. ===========================
  6700. In window script
  6701. ===========================
  6702. tell my thing1 to PublicRoutine()
  6703.  
  6704. --
  6705. Herb Schilling NASA Lewis Research Center 21000 Brookpark Road Mail Stop 142-4
  6706. Cleveland Ohio 44135 (216) 433-8955 Fax:(216)433-8000 
  6707. sshws@convx1.lerc.nasa.gov
  6708. AppleLink: SCHILLING.H
  6709. =========================================================================
  6710. Date:         Mon, 16 May 1994 14:54:17 U
  6711. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6712. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6713. From:         Paul Farrah <paul_farrah1@QM.CLARIS.COM>
  6714. Subject:      Re: Script handlers strangen
  6715.  
  6716.         Reply to:   RE>Script handlers strangeness
  6717. In response to Herb Schilling:
  6718.  
  6719. >   I am trying to call a handler of a script object I created at the
  6720. > application level from a window script. The call to the handler in the
  6721. > script object is fine but when I call another handler in the same script
  6722. > object from the handler, Frontmost  tells me that the <<script>> does not
  6723. > know how to handle the message, PrivateRoutine. Somehow, I have a feeling
  6724. > that the call to PrivateRoutine is being done in  the context of the window
  6725. > script so it never gets to the thing1 object but this is a guess and I
  6726. > don't see why this should be so.
  6727.  
  6728. Very frustrating bug and difficult to track down, isn't it? Here's a
  6729. workaround that works for me. You can pass the script object to an "init"
  6730. handler (or whatever you want to call it) in your window's script, and then
  6731. have your window's init handler assign the parameter to a "local" property.
  6732. For example, after calling CreateThing, send a message like this to your
  6733. window:
  6734.  
  6735.    tell window "mywindow" to init given theScript:thing1
  6736.  
  6737. ...where window "my window" contains the following code
  6738.  
  6739.     property localThing:{} -- bogus initial value
  6740.  
  6741.     on init given theScript:theScriptObject
  6742.        set my localThing to theScriptObject
  6743.     end init
  6744.  
  6745. Then, to access the handlers within thing1, your window's script should just
  6746. call like this:
  6747.  
  6748.      tell my localThing to PublicRoutine()
  6749.  
  6750. It's really not a "neat" workaround, but it works. If you have many
  6751. application script objects that the window's script needs to know about, you
  6752. might try creating a record or a list of script objects in the application's
  6753. script, and then just pass the entire record or list to the window's init
  6754. handler; that way you wouldn't need to modify the parameter list of the init
  6755. handler when you add or remove scripts since all the scripts would be passed
  6756. in just one parameter.
  6757.  
  6758. Let me know if you have any problems getting this to work.
  6759.  
  6760. -Paul
  6761. =========================================================================
  6762. Date:         Mon, 16 May 1994 16:30:24 -0700
  6763. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6764. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6765. From:         David Ray <daver@NETCOM.COM>
  6766. Subject:      Re: AppleScript & MIDI
  6767.  
  6768. >Does anyone know if AppleScript will interact with either the Apple MIDI
  6769. >Manager or the Opcode MIDI System (OMS)?  Specifically, is there a way to
  6770. >get AS to recognize MIDI data?
  6771. >
  6772. >For example, can I have MIDI 'note on' (or program change, or whatever)
  6773. >signal sent from a remote computer and interpreted by AppleScript to
  6774. >trigger a macro or have another application open a file?
  6775.  
  6776. I use MIDI and Applescript a lot, but never together simultaneously.
  6777. The main problem is that, even if you *could* get applescript to sense
  6778. a MIDI event, the random delays that Applescript intoduces would make
  6779. it impossible to send events with the timing accuracy needed for
  6780. performance purposes. If timing accuracy is not a concern, then ther
  6781.  
  6782. >The problem arises because ethernet and appletalk conflict with MIDI and
  6783. >thus there is no way to have a network running at the same time as any
  6784. >software that requires MIDI.
  6785.  
  6786. Not true. I have the printer port running Appletalk, and the modem port
  6787. sending/receiving MIDI. Runs fine unless there is a lot of traffic
  6788. on both ports simultaeously. I'm using OMS.
  6789.  
  6790. I had a similar need for controlling Apple Events from MIDI, and here's
  6791. what I did.
  6792.  
  6793.              CPU #1                                      CPU #2
  6794.     ___________________________                 ___________________________
  6795.    |                           |               |                           |
  6796.    |     Running Max 2.2       |               |   Running Hypercard 2.1   |
  6797.    |                           |               |                           |
  6798.    |                           |               |                           |
  6799.    |                           |               |                           |
  6800.    |    modem        printer   |               |    modem        printer   |
  6801.     ___________________________                 ___________________________
  6802.     |     o             o     |                 |     o             o     |
  6803.     ___________________________                 ___________________________
  6804.          midi         rs232                         rs232        Appletalk
  6805.           |             |                             |             |
  6806.           |             |                             |             |
  6807.           |              -----------------------------              |
  6808.        -------                                                   -------
  6809.       |       |                                                 |       |
  6810.       |       |                                                 |       |
  6811.        -------                                                   -------
  6812.         midi                                                    Appletalk
  6813.       interface                                                  device
  6814.                                                           (Common Sense CNE)
  6815.  
  6816. The MAX software will run concurrently with Appletalk, but there is no
  6817. mechanism for them to communicate. MAX does have an RS-232 in/out provision
  6818. that can be triggered with MIDI and doesn't bog down timing accuracy of
  6819. MIDI playback. So I use the RS232 provision instead of Appletalk, and send
  6820. the signal to another CPU. This preserves timing accuracy on the system that
  6821. is outputting the music.
  6822.  
  6823. When a MIDI message comes in that I want to trigger something,
  6824. I send a signal out the RS-232 port into another computer running Hypercard.
  6825. There are XCMD and XCFN's that can check the characters coming in the
  6826. serial port. From there, some nested if..then statements in Hyperscript
  6827. allow me to trigger events based on which characters are sent over the
  6828. serial port. Other XCFN's are used to send Apple Events to my
  6829. Appletalk device.
  6830.  
  6831. I was able to send Apple events using XCMD's, without the use of Applescript.
  6832. If you want to trigger the opening of documents as you described, this
  6833. can be done in Hypercard without the use of Applescript. I don't know of
  6834. any mechanism to interface serial data with Applescript directly, except for
  6835. the TCP/IP scripting addition, which is only useful for SLIP/PPP type
  6836. of serial data.
  6837.  
  6838. What I'm looking for is a solution to doing all this with one CPU instead of
  6839. two. Something like:
  6840.  
  6841.  
  6842.     ________________________________________
  6843.    |                                        |
  6844.    |   Max 2.2                  Hypercard   |
  6845.    |      |                         |       |
  6846.    |    --------               ----------   |
  6847.    |   |        |             |          |  |
  6848.    |   |     virtual       virtual       |  |
  6849.    |   |     port 1        port 2        |  |
  6850.    |   |        |             |          |  |
  6851.    | modem       -------------       printer|
  6852.     ________________________________________
  6853.     |  o                                 o  |
  6854.     ________________________________________
  6855.       midi                           Appletalk
  6856.        |                                 |
  6857.        |                                 |
  6858.        |                                 |
  6859.     -------                           -------
  6860.    |       |                         |       |
  6861.    |       |                         |       |
  6862.     -------                           -------
  6863.      midi                            Appletalk
  6864.    interface                          device
  6865.  
  6866. So far I've been unsuccesful at this. There is a package called Loopback, which
  6867. adds two "virtual" CTB ports where the output of one goes to the input of the
  6868. other. The problem is that both programs (MAX and Hypercard) must be convinced
  6869. to use the selectable CTB port. The Hypercard XCMD can do this, but MAX/OMS
  6870. cannot. If I can get someone at Opcode to write a special version of the
  6871. MAX serial object that uses the CTB, I would be in business.
  6872.  
  6873. I supose there aren't a lot of people doing what I've shown here! Hence
  6874. Opcode is not really motivated to write special code for me, so this is the
  6875. best solution I could come up with.
  6876.  
  6877.  
  6878. Cheers
  6879.  
  6880. Dave
  6881.  
  6882. ------------------------------------------------------------------------------
  6883. David Ray                Dream Designs          Music Composition
  6884. daver@netcom.com         PO Box 5631            Interactive Multimedia
  6885. 510-527-9010             Berkeley CA 94705      Virtual Worlds
  6886. =========================================================================
  6887. Date:         Mon, 16 May 1994 16:31:21 -0700
  6888. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6889. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6890. From:         David Ray <daver@NETCOM.COM>
  6891.  
  6892. >hi all I have a few specific questions.
  6893. >
  6894. >first off is there a scriptable screen capture utility avaliable? id like
  6895. >to be able to specify where it captures by cordinates of the screen.
  6896.  
  6897. Nothing like that, but you could always invoke f-key #3 to capture the whole
  6898. screen. I think the f-key can be scripted with Jon's commands scripting
  6899. addition.
  6900.  
  6901. >the second question is how do i determine the path of an open file. I know
  6902. >i can get the path by opening the file with choose file, but id like to
  6903. >figure out a get path command for and open file so i can do a save as to a
  6904. >different folder location which depends on the path of the original file.
  6905.  
  6906. I don't think it's possible.
  6907.  
  6908. -Dave
  6909.  
  6910. ------------------------------------------------------------------------------
  6911. David Ray                Dream Designs          Music Composition
  6912. daver@netcom.com         PO Box 5631            Interactive Multimedia
  6913. 510-527-9010             Berkeley CA 94705      Virtual Worlds
  6914. =========================================================================
  6915. Date:         Mon, 16 May 1994 17:51:00 -0600
  6916. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6917. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6918. From:         Kyle Maxwell <maxwell@CC.DIXIE.EDU>
  6919. Subject:      AppleScript: Re: Scripting open files
  6920.  
  6921. >>the second question is how do i determine the path of an open file. I know
  6922. >>i can get the path by opening the file with choose file, but id like to
  6923. >>figure out a get path command for and open file so i can do a save as to a
  6924. >>different folder location which depends on the path of the original file.
  6925. >
  6926. >I don't think it's possible.
  6927.  
  6928.  
  6929. Kyle responds: I'm not sure I fully catch the drift of what you're trying
  6930. to do, but I'm referencing active files in my current projects, then moving
  6931. them to different folders based on their file type. (basically, I'm
  6932. watching a Rendering, determining when it becomes a PICT, closing it, then
  6933. moving it from one folder to another.)
  6934.  
  6935. I don't want to bore you with code that may not be applicable, but if this
  6936. sounds similar to what you're doing, let me know, and I'll send you some
  6937. sample code from my project.
  6938.  
  6939. Kyle
  6940. =========================================================================
  6941. Date:         Mon, 16 May 1994 17:56:19 -0600
  6942. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6943. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6944. From:         Kyle Maxwell <maxwell@CC.DIXIE.EDU>
  6945. Subject:      AppleScript: Frontmost, application of the Devil...
  6946.  
  6947. Hi all, I've got an interesting (read: frustrating as hell) situation:  I
  6948. have an enabler script that simply talks to a remote application.  The
  6949. script is as basic as you can get:
  6950.  
  6951. on run
  6952.         try
  6953.            tell app "SomeAPP" of machine "Remote" of zone "Nomads"
  6954.                 doIt()
  6955.            end tell
  6956.         on error
  6957.            --no files to process
  6958.         end try
  6959. end run
  6960.  
  6961. This works fine if I run it as as an AS app, but the second I attach it to
  6962. a button in Frontmost, the doIt() expression causes a Bus Error!  Yikes!
  6963.  
  6964. Of course, I've tried sending the command as a script object, but THAT, as
  6965. we all know, will cause the ever-popular "User access denied" message that
  6966. we've all grown to know and love so well. =)
  6967.  
  6968. Has anyone else had this problem with Frontmost?  If so, what did you do
  6969. about it?  (I've got a sample file into Rob at AS tech, but I'm sure it
  6970. will take him a few days to trace it.)
  6971.  
  6972. Kyle "Script Killer" Maxwell
  6973. =========================================================================
  6974. Date:         Tue, 17 May 1994 11:22:48 +0903
  6975. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6976. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6977. From:         Matt Craig <mnmac@GAMGEE.CC.FLINDERS.EDU.AU>
  6978.  
  6979. >first off is there a scriptable screen capture utility avaliable? id like
  6980. >to be able to specify where it captures by cordinates of the screen.
  6981.  
  6982. It's not scriptable (at least I don't think so), but Flash-It will allow
  6983. you to capture a mouse-drag definable area of the screen (+ or - the
  6984. cursor), and continue to re-capture that area at the press of a button.
  6985.  
  6986.  
  6987. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  6988. Matt Craig
  6989. Flinders Medical Centre               "By the time they had diminished from
  6990. South Australia                        50 to 8, the other dwarves began
  6991. Phone 61-8-204-4946                    to suspect "Hungry"" - The Far Side
  6992. Email mnmac@cc.flinders.edu.au
  6993. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  6994. =========================================================================
  6995. Date:         Thu, 12 May 1994 09:20:56 -0400
  6996. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6997. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6998. From:         Michael Edmondson <ccastme@PRISM.GATECH.EDU>
  6999. Subject:      Re: Danny Goodman's book - a question
  7000. In-Reply-To:  <199405120545.BAA13936@acme.gatech.edu> from "Wagner Luiz
  7001.               Truppel" at May 12, 94 07:44:25 am
  7002.  
  7003. > I have just signed on and I already need some help. Could someone tell me
  7004. > the ISBN number of Danny Goodman's book on AppleScript?
  7005.  
  7006. The Complete AppleScript Handbook   (this is the original w/ AS 1.0)
  7007. Danny Goodman
  7008. Random House Electronic Publishing
  7009. ISBN 0-679-79148-5
  7010. U.S. $35.00
  7011. CAN. $46.00
  7012.  
  7013. The "Upgrade" for the Handbook to AppleScript 1.1 is:
  7014. ISBN 0-679-75537-3
  7015. U.S. $4.75
  7016.  
  7017. (I don't know if they are shipping the Handbook with AS 1.1)
  7018.  
  7019. You can contact Random House at 800-733-3000.
  7020.  
  7021. --
  7022. Michael Edmondson  -=-  ccastme@acme.gatech.edu  -=-  Macintosh User Assistant
  7023. =========================================================================
  7024. Date:         Tue, 17 May 1994 04:36:16 -0400
  7025. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7026. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7027. From:         "Lavallee, Marc" <r27764@ER.UQAM.CA>
  7028. Subject:      OSA and Hypercard 2.2
  7029.  
  7030. I would like to know how to use the new popup menu in the scripting editor
  7031. of Hypercard 2.2. I don't get it...
  7032. Maybe my question should be send to the Hypercard list, but:
  7033. how to execute a Quickeys sequence or an AppleScript script from a button?
  7034. Since Quickeys/AppleScript don't understand "on mouseUp", how other
  7035. scripting langages can be used within Hypercard and mixed with Hypertalk?
  7036.  
  7037.  Marc Lavallee
  7038.  r27764@er.uqam.ca
  7039. =========================================================================
  7040. Date:         Tue, 17 May 1994 07:47:14 -0500
  7041. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7042. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7043. Comments:     <Parser> E: "From:"/"Sender:" field is missing.
  7044. From:         Undetermined origin c/o Postmaster <POSTMASTER@DARTCMS1.BITNET>
  7045. Subject:      Re: AppleScript & MIDI
  7046. In-Reply-To:  Your message of "Mon, 16 May 1994 16:30:24 MDT."
  7047.  
  7048.  <9405170432.AA24808=DARTCMS1.DARTMOUTH.EDU!owner-macscrpt@HEARN.nic.SURFnet.nl
  7049. @
  7050.  charon.cwi.nl>
  7051. Date: Tue, 17 May 1994 13:45:01 +0200
  7052. From: Peter de Waal <Peter.de.Waal@cwi.nl>
  7053.  
  7054.  
  7055. David Ray writes:
  7056.  
  7057. > I use MIDI and Applescript a lot, but never together simultaneously.
  7058. > The main problem is that, even if you *could* get applescript to sense
  7059. > a MIDI event, the random delays that Applescript intoduces would make
  7060. > it impossible to send events with the timing accuracy needed for
  7061. > performance purposes. If timing accuracy is not a concern, then ther
  7062.  
  7063. Abrupt end of the sentence, just when things were getting interesting.
  7064.  
  7065. Just two remarks:
  7066.  
  7067. 1. I thought that it's possible to let the MIDI manager do all the
  7068. timing. I surely would not like to program a sequencer in Applescript, but
  7069. in principle the timing accuracy can be taken care of by the MIDI
  7070. manager.
  7071.  
  7072. 2. It would be great to have an OSAX or APPL that would allow you to
  7073. send and get data from the MIDI manager, in the sense that you could
  7074. tell it, for instance, to send a given list of bytes. Something like
  7075. the TCP/IP OSAX, but then for MIDI :-). Does something like this exist?
  7076.  
  7077. --- Peter de Waal, CWI, Amsterdam ---
  7078. =========================================================================
  7079. Date:         Tue, 17 May 1994 10:03:52 -0500
  7080. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7081. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7082. From:         Herb Schilling <hschilling@LERC.NASA.GOV>
  7083. Subject:      Re: Script handlers strangen
  7084.  
  7085. >        Reply to:   RE>Script handlers strangeness
  7086. >In response to Herb Schilling:
  7087. >
  7088. >>   I am trying to call a handler of a script object I created at the
  7089. >> application level from a window script. The call to the handler in the
  7090. >> script object is fine but when I call another handler in the same script
  7091. >> object from the handler, Frontmost  tells me that the <<script>> does not
  7092. >> know how to handle the message, PrivateRoutine. Somehow, I have a feeling
  7093. >> that the call to PrivateRoutine is being done in  the context of the window
  7094. >> script so it never gets to the thing1 object but this is a guess and I
  7095. >> don't see why this should be so.
  7096. >
  7097. >Very frustrating bug and difficult to track down, isn't it? Here's a
  7098. >workaround that works for me. You can pass the script object to an "init"
  7099. >handler (or whatever you want to call it) in your window's script, and then
  7100. >have your window's init handler assign the parameter to a "local" property.
  7101. >For example, after calling CreateThing, send a message like this to your
  7102. >window:
  7103. >
  7104. >   tell window "mywindow" to init given theScript:thing1
  7105.  
  7106.  
  7107. > Stuff deleted......
  7108.  
  7109. Paul,
  7110.  
  7111.  Thanks for the idea. It works! I also came up with an idea that also
  7112. works. I don't know which is better. Anyone care to comment? I haven't done
  7113. much with my method yet so there could be problems.
  7114.  
  7115.  
  7116. Here is my revised code. I put --******* next to the modified or new stuff.
  7117. It has the benefit of not messing up the windows script but it messes up
  7118. the script object a bit. Basically, I store a reference to the script
  7119. object inside itself as a property.  Then when I call a handler of the
  7120. script I explicitly use that reference with a tell phrase.
  7121.  
  7122. ===========================
  7123. In application script
  7124. ===========================
  7125. on run()
  7126.      set thing1 to CreateThing()
  7127. end run
  7128.  
  7129. on CreateThing() -- "constructor" of thing
  7130.         script thing
  7131.         property yoursTruly : {} -- *******
  7132.                 on PrivateRoutine()
  7133.                         -- do something
  7134.                 end PrivateRoutine
  7135.  
  7136.                 on PublicRoutine()
  7137.                         tell yoursTruly to PrivateRoutine() -- *********
  7138.                 end PublicRoutine
  7139.  
  7140.         end script
  7141.         set theResult to result -- **********
  7142.        set yoursTruly of theResult to theResult -- **********
  7143. end CreateThing
  7144.  
  7145.  
  7146. ===========================
  7147. In window script
  7148. ===========================
  7149. tell my thing1 to PublicRoutine()
  7150.  
  7151. --
  7152. Herb Schilling NASA Lewis Research Center 21000 Brookpark Road Mail Stop 142-4
  7153. Cleveland Ohio 44135 (216) 433-8955 Fax:(216)433-8000 
  7154. sshws@convx1.lerc.nasa.gov
  7155. AppleLink: SCHILLING.H
  7156. =========================================================================
  7157. Date:         Tue, 17 May 1994 10:19:58 -0400
  7158. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7159. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7160. From:         Aimee Baird Pharr <aabuva@WAM.UMD.EDU>
  7161. Subject:      Symantec C++ Peek Command
  7162.  
  7163. I am using AppleScript to automate some of the tedious operations
  7164. required to build complex Symantec C++ projects reliably.
  7165.  
  7166. Symantec provides some scripting examples and there are some scripts
  7167. on sumex, but I see very little use of the Peek or Poke commands
  7168. which allow access the data in their options blocks.
  7169.  
  7170. Does anyone have any sample AppleScript code which makes use
  7171. of the Peek command? I am having problems getting AppleScript to assign
  7172. a 16 bit integer in the data block to an AppleScript integer type.
  7173. I get random results and I have resorted to examining the structure on a
  7174. byte by byte basis - very awkward. Any help I could get would be greatly
  7175. appreciated.
  7176.  
  7177. Thanks,
  7178. Paul Pharr
  7179. =========================================================================
  7180. Date:         Tue, 17 May 1994 15:42:33 GMT
  7181. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7182. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7183. From:         "Robert K. Terra" <Robert_Terra@BROWN.EDU>
  7184. Organization: Brown University
  7185. Subject:      Copying Folders without Finder coming to the front
  7186.  
  7187. Hi all,
  7188.  
  7189. Is it possible to copy a folder without the finder coming to the front?
  7190.  
  7191. I'm writing a script that allows me to copy files/folders to many folders
  7192. on a fileserver.  I'm using a "progress bar" to show which folder that I am
  7193. currently on and how many folders are left. It seems like in can be done
  7194. with files using Jon Pugh's "copyFile" but that (or I can't get it to work)
  7195. does'nt seem to work for folders. I can copy folders using "finderLib" but
  7196. that's where it seems to bring up the finder's "copying aleart" which ends
  7197. up putting the progress bar in the background. I would like for the
  7198. progress bar to remain "in front" throughout the script.
  7199.  
  7200. PS: Still using v1.0 and it seems like I have just about every scripting
  7201. addition known to mankind.
  7202.  
  7203. thx in advance for any help
  7204. Bob
  7205. =========================================================================
  7206. Date:         Tue, 17 May 1994 09:09:48 -0700
  7207. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7208. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7209. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  7210. Subject:      Re: OSA and Hypercard 2.2
  7211.  
  7212. Marc Lavallee writes...
  7213.  
  7214. >I would like to know how to use the new popup menu in the scripting editor
  7215. >of Hypercard 2.2. I don't get it...
  7216. >Maybe my question should be send to the Hypercard list, but:
  7217. >how to execute a Quickeys sequence or an AppleScript script from a button?
  7218. >Since Quickeys/AppleScript don't understand "on mouseUp", how other
  7219. >scripting langages can be used within Hypercard and mixed with Hypertalk?
  7220.  
  7221. The small detail that AppleScript doesn't understand the mouseup event
  7222. doesn't keep things from working.  Here's a working button script from a
  7223. play stack of mine (no, it doesn't do anything useful...it does work,
  7224. simulating a click on another button):
  7225.  
  7226. on mouseUp
  7227.     beep
  7228.     tell application "HyperCard" to click at loc of button "Test"
  7229. end mouseUp
  7230.  
  7231.  
  7232. [As it happens, the button script for button "Test" is written in UserTalk.]
  7233.  
  7234. Jon Pugh will explain how it works in detail, I suspect.  But...OSA has
  7235. some events which make this sort of thing quite easy.  It's a nice
  7236. design...you can include it in programs of your own without great
  7237. difficulty.
  7238.  
  7239.    --John
  7240.  
  7241. --
  7242. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  7243. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  7244. =========================================================================
  7245. Date:         Tue, 17 May 1994 11:49:41 U
  7246. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7247. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7248. From:         Frank Concannon <frank.concannon@DISPATCHER.UOKHSC.EDU>
  7249. Subject:      Invisible Scripts !!
  7250.  
  7251.  Invisible Scripts !!
  7252. Howdy
  7253.  
  7254. OK. Here is a question that may be off the wall.
  7255.  
  7256. I have a classroom of Quad 700s for which I an developing some
  7257. control/monitoring scripts.  At this stage the strategy is to save the
  7258. control/monitoring script as an application store it on an AppleShare server
  7259. and put an alias to it in the Startup Items folder on individual macs. All
  7260. this has been tested and found to be a workable solution.
  7261.  
  7262. However,  elegant it ain't.
  7263.  
  7264. Now that everything is starting to work to my satisfaction I need a way to
  7265. prevent users from quitting the script application on the classroom Macs
  7266. either deliberately or accidently.
  7267. Is there an alternative way to run a script such that it presents no
  7268. interface to the user (ie. No Menubar!.)  I have in mind "Script Daemon" from
  7269. Peter N Lewis. which performs a similar task.
  7270. Can something like this be implemented by mortals ( read...I am not a C
  7271. programmer. )
  7272.  
  7273. Frank C.
  7274.  
  7275. R&E
  7276. =========================================================================
  7277. Date:         Tue, 17 May 1994 12:59:49 -0400
  7278. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7279. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7280. From:         "Lavallee, Marc" <r27764@ER.UQAM.CA>
  7281. Subject:      Re: OSA and Hypercard 2.2
  7282.  
  7283. On Tue, 17 May 1994, John W. Baxter wrote:
  7284.  
  7285. > on mouseUp
  7286. >     beep
  7287. >     tell application "HyperCard" to click at loc of button "Test"
  7288. > end mouseUp
  7289. >
  7290. >
  7291. > [As it happens, the button script for button "Test" is written in UserTalk.]
  7292.  
  7293. Recursivity? If the button script is a Quickeys sequence, will it work?
  7294. Instead of telling a button, in Applescript, to click a button that
  7295. contains another "non-Hypertalk" script, I only want to execute a Quickeys
  7296. sequence...  I understand now that only the concept of OSA has been
  7297. implemented in Hypercard, and that it is not very useful now because the
  7298. foreign scripting langage must understand Hypercard messages (this not
  7299. the case of Quickeys). :-(
  7300. =========================================================================
  7301. Date:         Tue, 17 May 1994 12:09:27 -0600
  7302. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7303. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7304. From:         Kyle Maxwell <maxwell@CC.DIXIE.EDU>
  7305. Subject:      AppleScript: Eudora Scripting
  7306.  
  7307. Hi all!
  7308.  
  7309. Here's a simple little script I wrote for sorting files in Eudora.
  7310. Basically, all it does is sort AppleScript related mail into an
  7311. "AppleScript List" folder. (or any files you want into any folder you want,
  7312. of course.)
  7313.  
  7314. ---------------------- cut here---------------------------
  7315.  
  7316. property default : ""
  7317. property inBox : "In"
  7318. property asBox : "AppleScript list"
  7319.  
  7320. on run
  7321.         tell application "Eudora1.4.2"
  7322.                 activate
  7323.                 set messageCount to count message of mailbox inBox of mail
  7324. folder ""
  7325.                 repeat with i from 1 to messageCount
  7326.                         set holder to Subject of message i of mailbox inBox
  7327. of mail folder default
  7328.                         if holder contains ("AppleScript" as string) then
  7329.                                 move message i of mailbox inBox of mail
  7330. folder default =AC
  7331.                                         InsertHere end of mailbox asBox of
  7332. mail folder default
  7333.                         end if
  7334.                 end repeat
  7335.         end tell
  7336. end run
  7337.  
  7338. ---------------------- cut here---------------------------
  7339.  
  7340. Obviously, since it only searches the Subject field, you have to rely on
  7341. the courtesy of others to include the List name in their subject
  7342. descriptions.  Still, since it's just basic Nettiquete to do so, it usually
  7343. works.  (Or, you could change line 6 search the Message field, if you
  7344. happen to have all day for the search to complete.) <grin>
  7345.  
  7346. Kyle
  7347.  
  7348. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  7349. -I'd feel worse if I weren't under such heavy sedation...
  7350. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  7351. =========================================================================
  7352. Date:         Tue, 17 May 1994 11:35:13 -0700
  7353. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7354. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7355. From:         John R Mudd <jrm@PGROUP.COM>
  7356. Subject:      Applescript/FileMaker Pro problem and questions
  7357.  
  7358. Here's an interesting problem that I've run into, and hopefully
  7359. someone will have some good advice on how to resolve it.  Note
  7360. that I am relatively new to Applescript.
  7361.  
  7362. I have a server that runs System 7 Pro and FM Pro 2.1.  FMP files
  7363. can be opened across the network on various user Macs.  At night,
  7364. the FMP files need to be closed first before the backup runs.  I
  7365. can't ensure that my users will close the files themselves--the
  7366. script has to make sure that FMP is down before firing up the
  7367. backup program (Retrospect).
  7368.  
  7369. I've been unable to create an applescript that will handle the
  7370. above scenario.  Ideally,
  7371.  
  7372. 'tell application "FileMaker Pro" to close every window saving yes'
  7373.  
  7374. in the Scriptable Text Editor would do the trick, but FMP doesn't
  7375. seem to acknowledge the 'saving yes' part.  Simply closing every
  7376. window doesn't work, because invariably someone has left a file
  7377. open, and the 'close' will then return with a FMP dialog box
  7378. saying so-and-so is still using the file.
  7379.  
  7380. Solutions?  If FMP truly doesn't support the "saving yes" option,
  7381. does the dialog box generate an event that I can capture in my
  7382. script and force the 'saving yes' that way?
  7383.  
  7384. ---
  7385.  John R. Mudd                                   jrm@pgroup.com
  7386.  The Portland Group, Inc.                       Voice: (503) 682-2806
  7387.  9150 SW Pioneer Court, Suite J                 FAX:   (503) 682-2637
  7388.  Wilsonville, Oregon 97070
  7389. =========================================================================
  7390. Date:         Tue, 17 May 1994 13:05:46 -0600
  7391. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7392. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7393. From:         Kyle Maxwell <maxwell@CC.DIXIE.EDU>
  7394. Subject:      Re: Applescript/FileMaker Pro problem and questions
  7395.  
  7396. >'tell application "FileMaker Pro" to close every window saving yes'
  7397. >
  7398. >in the Scriptable Text Editor would do the trick, but FMP doesn't
  7399. >seem to acknowledge the 'saving yes' part.  Simply closing every
  7400. >window doesn't work, because invariably someone has left a file
  7401. >open, and the 'close' will then return with a FMP dialog box
  7402. >saying so-and-so is still using the file.
  7403. >
  7404. >Solutions?  If FMP truly doesn't support the "saving yes" option,
  7405. >does the dialog box generate an event that I can capture in my
  7406. >script and force the 'saving yes' that way?
  7407.  
  7408.  
  7409. I've attempted this very thing, or something similar to it; your problem
  7410. lies in the fact that FMP doesn't support save yes/no.  (Claris
  7411. thoughtfully forged new ground in user interface, and auto-saves all files.
  7412. This goes in the "Isn't it nice that AppleLink doesn't support
  7413. AppleScript" file of unsolvable mysteries...  <grin>)
  7414.  
  7415. You could force the whole program to quit, which is what I did.  (I used
  7416. the Choose Application command, queued up all known running copies of FMP,
  7417. then Quit them.)  This method tends to miff people a bit, (Who shut down my
  7418. Inventory list!?!) but it's the only work around I've been able to come up
  7419. with...  Looking forward to what others have to say about this...
  7420.  
  7421. Kyle
  7422.  
  7423. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  7424. -I'd feel worse if I weren't under such heavy sedation...
  7425. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  7426. =========================================================================
  7427. Date:         Tue, 17 May 1994 14:03:07 U
  7428. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7429. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7430. From:         Paul Farrah <paul_farrah1@QM.CLARIS.COM>
  7431. Subject:      Re: Applescript/FileMaker P
  7432.  
  7433.         Reply to:   RE>>Applescript/FileMaker Pr
  7434. Re: Problem about telling FileMaker Pro to close every window
  7435.  
  7436. True, FileMaker Pro doesn't support the concept of "saving" because it
  7437. automatically saves during idle time and whenever else it is necessary.
  7438.  
  7439. If your main concern is to get the backup done, I've successfully backed up
  7440. FileMaker Pro files (copied them in the Finder) without first closing them.
  7441. Upon reopening the backed-up files, FileMaker Pro will do a "consistency
  7442. check" (basically verifies that the file indeed was closed OK). I couldn't
  7443. gaurantee that this method won't cause problems, but I've done it dozens of
  7444. times without any problems myself. Note that this is possible only when the
  7445. Finder of the host machine performs the copy (i.e., you can't do it from a
  7446. machine that has the host mounted as an AppleShare volume--your Finder will
  7447. say that the file is busy).
  7448.  
  7449. FileMaker Pro Server (soon to be released) will have the capability to be
  7450. administered remotely. You would be able to selectively send disconnect
  7451. messages to individual guests of individual databases. If the files remain
  7452. open on the guest machines after several notification attempts, the
  7453. administrator will have the option to force any or all guests to be
  7454. disconnected, or to resend the disconnect notification (or to cancel the
  7455. disconnect notification). Although forcing users to disconnect in this manner
  7456. introduces the possibility of data loss (changes to any records actively
  7457. being edited on guest machines, and possible data loss of databases being
  7458. hosted by the guests), there really is nothing the host application could do
  7459. to prevent this since you are, in effect, telling FileMaker Pro, "I don't
  7460. care, just close it!".
  7461.  
  7462. Hope this helps.
  7463. -Paul
  7464.  
  7465. <discussion below>
  7466. ---------------------------------------------------------
  7467. >'tell application "FileMaker Pro" to close every window saving yes'
  7468. >
  7469. >in the Scriptable Text Editor would do the trick, but FMP doesn't
  7470. >seem to acknowledge the 'saving yes' part.  Simply closing every
  7471. >window doesn't work, because invariably someone has left a file
  7472. >open, and the 'close' will then return with a FMP dialog box
  7473. >saying so-and-so is still using the file.
  7474. >
  7475. >Solutions?  If FMP truly doesn't support the "saving yes" option,
  7476. >does the dialog box generate an event that I can capture in my
  7477. >script and force the 'saving yes' that way?
  7478.  
  7479.  
  7480. I've attempted this very thing, or something similar to it; your problem
  7481. lies in the fact that FMP doesn't support save yes/no.  (Claris
  7482. thoughtfully forged new ground in user interface, and auto-saves all files.
  7483. This goes in the "Isn't it nice that AppleLink doesn't support
  7484. AppleScript" file of unsolvable mysteries...  <grin>)
  7485.  
  7486. You could force the whole program to quit, which is what I did.  (I used
  7487. the Choose Application command, queued up all known running copies of FMP,
  7488. then Quit them.)  This method tends to miff people a bit, (Who shut down my
  7489. Inventory list!?!) but it's the only work around I've been able to come up
  7490. with...  Looking forward to what others have to say about this...
  7491.  
  7492. Kyle
  7493.  
  7494. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  7495. -I'd feel worse if I weren't under such heavy sedation...
  7496. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  7497. =========================================================================
  7498. Date:         Tue, 17 May 1994 18:51:21 -0800
  7499. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7500. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7501. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  7502. Subject:      Eudora Sample Scripts?
  7503.  
  7504. Can someone point me to the location of the Eudora sample scripts?
  7505.  
  7506. Can someone point me to the server for the latest Eudora that all you
  7507. Eudora Scripters are using? Are people using 1.4.2 or the 2.x version for
  7508. these AppleScripts?
  7509.  
  7510. I've been using PowerTalk and the Beyond PowerRules and well ... I'd like
  7511. to experiment with another option.
  7512.  
  7513. Thanks,
  7514. Kee Nethery
  7515.  
  7516. _________________________________________________________________
  7517. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  7518. =========================================================================
  7519. Date:         Tue, 17 May 1994 20:45:41 -0700
  7520. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7521. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7522. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  7523. Subject:      Re: OSA and Hypercard 2.2
  7524.  
  7525. >On Tue, 17 May 1994, John W. Baxter wrote:
  7526. >
  7527. >> on mouseUp
  7528. >>     beep
  7529. >>     tell application "HyperCard" to click at loc of button "Test"
  7530. >> end mouseUp
  7531. >>
  7532. >>
  7533. >> [As it happens, the button script for button "Test" is written in UserTalk.]
  7534. >
  7535. >Recursivity? If the button script is a Quickeys sequence, will it work?
  7536. >Instead of telling a button, in Applescript, to click a button that
  7537. >contains another "non-Hypertalk" script, I only want to execute a Quickeys
  7538. >sequence...  I understand now that only the concept of OSA has been
  7539. >implemented in Hypercard, and that it is not very useful now because the
  7540. >foreign scripting langage must understand Hypercard messages (this not
  7541. >the case of Quickeys). :-(
  7542.  
  7543. The non-Hypercard scripting system does NOT have to understand HyperCard
  7544. messages.  It need only know how to send certain defined events having to
  7545. do with "hey, you...handle this subroutine".  Nothing in AppleScript
  7546. understands "mouseUp" except in the context of Hypercard <or some other
  7547. host which works similarly>.
  7548.  
  7549. There are indeed other ways than my code snippet above to get the same job
  7550. done...that's just how I happened to do it in December when I was playing
  7551. around.
  7552.    --John
  7553.  
  7554. --
  7555. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  7556. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  7557. =========================================================================
  7558. Date:         Wed, 18 May 1994 15:52:13 +1200
  7559. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7560. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7561. From:         Michael Norris <michael.norris@STONEBOW.OTAGO.AC.NZ>
  7562. Subject:      Re: OSA and Hypercard 2.2
  7563.  
  7564. This is all very well and good, but how do I transfer an appleScript
  7565. varaible to a HyperTalk variable?
  7566.  
  7567. I can go from HC to AS by
  7568. set ASVar to evaluate "HCVar"
  7569.  
  7570. but how do I go in reverse?
  7571.  
  7572. Cheers,
  7573.  
  7574. Michael Norris,
  7575. CAL Consultant,
  7576. University of Otago,
  7577. PO Box 56,
  7578. Dunedin,
  7579. New Zealand.
  7580. ---------------------
  7581. Ph:(03) 479-7705
  7582. E-Mail: michael.norris@stonebow.otago.ac.nz
  7583. =========================================================================
  7584. Date:         Wed, 18 May 1994 08:24:56 +0200
  7585. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7586. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7587. From:         Marco Strehler <strehler@FVMED.UNIZH.CH>
  7588. Subject:      Re: Invisible Scripts !!
  7589.  
  7590. >Now that everything is starting to work to my satisfaction I need a way to
  7591. >prevent users from quitting the script application on the classroom Macs
  7592. >either deliberately or accidently.
  7593. >Is there an alternative way to run a script such that it presents no
  7594. >interface to the user (ie. No Menubar!.)  I have in mind "Script Daemon" from
  7595. >Peter N Lewis. which performs a similar task.
  7596. >Can something like this be implemented by mortals ( read...I am not a C
  7597. >programmer. )
  7598. >
  7599. >Frank C.
  7600. >
  7601. >R&E
  7602.  
  7603. Hi Frank!
  7604.  
  7605. This script application is visible but does not end to beep every 5 seconds.
  7606. The menu command "Quit" (or command-Q) won't have any effect.
  7607. For quitting you must use an <<unlock>> script (see below) or command-alt-esc.
  7608.  
  7609. Hope this helps!
  7610.  
  7611. - Marco
  7612.  
  7613. ---------------------------------------------------------------------
  7614. --      The <<Never Quit>> Script:
  7615. --      This script application (save as "stay open") never stops!
  7616. ---------------------------------------------------------------------
  7617.  
  7618. property QuitSwitch : false
  7619.  
  7620. on run
  7621.         set QuitSwitch to false
  7622. end run
  7623.  
  7624. on idle
  7625.         beep
  7626.         return 5
  7627. end idle
  7628.  
  7629. on QuitSwitcher()
  7630.         set QuitSwitch to true
  7631.         quit
  7632. end QuitSwitcher
  7633.  
  7634. on quit
  7635.         if QuitSwitch then continue quit
  7636. end quit
  7637.  
  7638. ---------------------------------------------------------------------
  7639. --      The <<Unlock>> Script:
  7640. --      Run THIS script to stop the annoying beeping!
  7641. ---------------------------------------------------------------------
  7642.  
  7643. tell application "Never Quit"
  7644.      QuitSwitcher()
  7645. end tell
  7646.  
  7647. ----------------------------------------------------------------
  7648.  Marco Strehler, Im Dreispitz 21, 8152 Glattbrugg (Switzerland)
  7649.  VOICE: ++41 (0)1 810 27 03   INTERNET: strehler@fvmed.unizh.ch
  7650. ----------------------------------------------------------------
  7651. =========================================================================
  7652. Date:         Wed, 18 May 1994 08:49:47 CDT
  7653. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7654. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7655. From:         Tom Donovan <donovan@COVIS.NWU.EDU>
  7656. Subject:      Re: OSA and Hypercard 2.2
  7657.  
  7658. >This is all very well and good, but how do I transfer an appleScript
  7659. >varaible to a HyperTalk variable?
  7660. >
  7661. >I can go from HC to AS by
  7662. >set ASVar to evaluate "HCVar"
  7663. >
  7664. >but how do I go in reverse?
  7665. >
  7666. >Cheers,
  7667. >
  7668.  
  7669. Michael,
  7670.  
  7671. Try this:
  7672.  
  7673.         set variable "HCVar" to ASVar
  7674.  
  7675.  
  7676. --Tom
  7677.  
  7678.  
  7679.  
  7680. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  7681. Tom Donovan           "The city is a place where a small boy, as he walks
  7682. Support Specialist     through it, may see something that will tell him what
  7683. CoVis Project          he wants to do his whole life."
  7684. Northwestern Univ.
  7685.                                                     --Louis I. Kahn
  7686. E-mail: donovan@covis.nwu.edu
  7687. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  7688. =========================================================================
  7689. Date:         Wed, 18 May 1994 10:12:44 -0400
  7690. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7691. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7692. From:         Michael Edmondson <ccastme@PRISM.GATECH.EDU>
  7693. Subject:      [?] Erase Disk in Finder
  7694.  
  7695. I work as a User Assistant at Georgia Tech, and a weekly routine is to
  7696. completely erase the hard drives of everything and then reinstall the
  7697. system software off of the local server. (A scripting nightmare, and I'm
  7698. just a beginner too!)  I've looked all over and have never found an 'Erase
  7699. Disk' scripting addition.  I've considered using Menu Events, but wonder if
  7700. perhaps someone else had another suggestion.
  7701.  
  7702. The whole refresh procedure consists of zapping the PRAM, booting off a
  7703. floppy (which doesn't have much space to begin with), erasing the hard
  7704. drive after making sure it has the right name, mounting the server and then
  7705. copying the neccessary folders onto the hard drive, then rebooting and
  7706. setting all the control panels.  Although when looking at the entire
  7707. process, I think just the first part (before rebooting) would suffice...for
  7708. now.
  7709.  
  7710. Hey, it's a great way for a beginner to learn how to script..
  7711. Start an enormous task before learning the basics  ;)
  7712.  
  7713. Michael Edmondson  -=-  ccastme@acme.gatech.edu  -=-  Macintosh User
  7714. Assistant
  7715. =========================================================================
  7716. Date:         Wed, 18 May 1994 10:59:07 -0400
  7717. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7718. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7719. From:         "Lee K. Hoong" <lhoong@EMORYU1.CC.EMORY.EDU>
  7720. Subject:      OSA Menu and Frontmost
  7721.  
  7722. I've been trying to use Leonard Rosenthol's OSA menu (1.01) with a
  7723. Frontmost mini-app (frontlet), but I keep getting an error of -1753.  Does
  7724. OSA menu work only with scripts/applets created by the Script Editor?  Any
  7725. insights will be appreciated.  Thanks in advance.
  7726.  
  7727. Lee.
  7728.  
  7729. Lee K. Hoong
  7730. Dept. of Chemistry, Emory University
  7731. Internet: lhoong@unix.cc.emory.edu  |  America On-line: LHOONG
  7732. Disclaimer: I speak for myself only, not for Emory University
  7733. =========================================================================
  7734. Date:         Wed, 18 May 1994 08:54:45 -0600
  7735. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7736. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7737. From:         Kyle Maxwell <maxwell@CC.DIXIE.EDU>
  7738. Subject:      AppleScript Re: Eudora Sample Scripts?
  7739.  
  7740. Re the message below:
  7741. Kee, use anon FTP for the following location:
  7742. ftp.qualcomm.com
  7743. It has sample scripts, as well as the latest version of Eudora.  Plus, I've
  7744. done a lot of work scripting Eudora; I'd be happy to send you what I've
  7745. done.
  7746.  
  7747. Kyle Maxwell
  7748. maxwell@cc.dixie.edu
  7749.  
  7750. -------------------------------------------
  7751.  
  7752. >Can someone point me to the location of the Eudora sample scripts?
  7753. >
  7754. >Can someone point me to the server for the latest Eudora that all you
  7755. >Eudora Scripters are using? Are people using 1.4.2 or the 2.x version for
  7756. >these AppleScripts?
  7757. >
  7758. >I've been using PowerTalk and the Beyond PowerRules and well ... I'd like
  7759. >to experiment with another option.
  7760. >
  7761. >Thanks,
  7762. >Kee Nethery
  7763. >
  7764. >_________________________________________________________________
  7765. >Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  7766.  
  7767. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  7768. -I'd feel worse if I weren't under such heavy sedation...
  7769. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  7770. =========================================================================
  7771. Date:         Wed, 18 May 1994 11:28:43 -0400
  7772. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7773. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7774. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  7775. Subject:      Re: [?] Erase Disk in Finder
  7776. In-Reply-To:  <no.id> from "Michael Edmondson" at May 18, 94 10:12:44 am
  7777.  
  7778. --Michael Edmondson wrote:
  7779. >
  7780. >I work as a User Assistant at Georgia Tech, and a weekly routine is to
  7781. >completely erase the hard drives of everything and then reinstall the
  7782. >system software off of the local server. (A scripting nightmare, and I'm
  7783. >just a beginner too!)
  7784.  
  7785.     You're kidding, right? You do this every week!? How many Macs do you
  7786. have to do this for?
  7787.  
  7788. >I've looked all over and have never found an 'Erase Disk' scripting
  7789. >addition.  I've considered using Menu Events, but wonder if perhaps
  7790. >someone else had another suggestion.
  7791.  
  7792.     I don't think there is an Erase Disk osax, however, what you really
  7793. need is a copy of the Scriptable Finder. You can get this by purchasing
  7794. a recent copy of the AppleScript scripter's Kit ($140 from
  7795. MacConnection), or puchasing the AppleScript Software Developer's Kit
  7796. ($199 from APDA).
  7797.  
  7798. >The whole refresh procedure consists of zapping the PRAM, booting off a
  7799. >floppy (which doesn't have much space to begin with), erasing the hard
  7800. >drive after making sure it has the right name, mounting the server and then
  7801. >copying the neccessary folders onto the hard drive, then rebooting and
  7802. >setting all the control panels.
  7803.  
  7804.     Well, I don't really want to tell you how to do your job (ok, so I
  7805. do want to, but that's beside the point ;), but you have an awful lot of
  7806. over kill going on here. First of all, you almost never need to zap the
  7807. PRAM on a Mac. You definitely don't need to do this on a weekly basis.
  7808. Secondly, erasing the Apple control panels and extensions really isn't
  7809. doing a whole lot. All they really do is provide an interface to the
  7810. resources in the System file. A better solution would be to trash the
  7811. System and the Finder every week, and copy fresh copies to the hard
  7812. drives. You might also want to trash the Finder Preferences file from
  7813. the Preferences folder. Instead of erasing the HD you might want to look
  7814. into removing any files that don't belong, and then optimozing the HD
  7815. with something like Speed Disk or CP Optimizer.
  7816.     The suggestions above are most likely more efficient than what you
  7817. are currently doing, put less wear and tear on the HDs, and definitely
  7818. takes less time. I would seriously investigate these and possibly some
  7819. other options to keeping your lab computers clean.
  7820.  
  7821. >Although when looking at the entire process, I think just the first part
  7822. >(before rebooting) would suffice...for now.
  7823.  
  7824.     Oh, yeah, btw the Scriptable Finder is pretty good a doing much of
  7825. what you seem to want to do. I think it's definitely the way for you to
  7826. go if you want to control the clean-up process with AppleScript. You can
  7827. also use UserLand Frontier to do this kind of Finder manipulation.
  7828.  
  7829. -Hades
  7830. p.s. Apologies to all of you who feel that this should have been posted
  7831. to another list...
  7832. =========================================================================
  7833. Date:         Wed, 18 May 1994 08:47:28 -0700
  7834. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7835. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7836. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  7837. Subject:      Re: OSA Menu and Frontmost
  7838.  
  7839. At 10:59 5/18/94 -0400, Lee K. Hoong wrote:
  7840. >I've been trying to use Leonard Rosenthol's OSA menu (1.01) with a
  7841. >Frontmost mini-app (frontlet), but I keep getting an error of -1753.  Does
  7842. >OSA menu work only with scripts/applets created by the Script Editor?  Any
  7843. >insights will be appreciated.  Thanks in advance.
  7844.  
  7845. OSA menu doesn't work "only" with scripts created by the Script Editor.  It
  7846. works well with scripts exported as OSA scripts from Frontier, for
  7847. instance.  [And it works with either of those in any available OSA
  7848. language.]
  7849.  
  7850. But...it does rely on certain things about the way the files are organized.
  7851. Considering that my attempt just now to use ResEdit to look at how the
  7852. Frontmost sample "StapleDocs.mini" produced a nasty warning about the file
  7853. being damaged, I'm dubious about whether Frontmost applets are organized as
  7854. OSA Menu expects.
  7855.  
  7856.    --John
  7857.  
  7858. --
  7859. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  7860. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  7861. =========================================================================
  7862. Date:         Wed, 18 May 1994 09:10:31 -0800
  7863. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7864. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7865. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  7866. Subject:      Re: [?] Erase Disk in Finder
  7867.  
  7868. >--Michael Edmondson wrote:
  7869. >>
  7870. >>I work as a User Assistant at Georgia Tech, and a weekly routine is to
  7871. >>completely erase the hard drives of everything and then reinstall the
  7872. >>system software off of the local server. (A scripting nightmare, and I'm
  7873. >>just a beginner too!)
  7874. >
  7875. >    You're kidding, right? You do this every week!? How many Macs do you
  7876. >have to do this for?
  7877. >
  7878.  
  7879. I know this might be bad form but ... Apple makes software that does
  7880. exactly what you describe you need. I forget what it is called, maybe
  7881. "alike" or some such name. No AppleScript involved but probably easier to
  7882. use. You boot from a floppy on each machine and a fresh version of the hard
  7883. drive is replicated onto the machines hard drive.
  7884.  
  7885. Kee Nethery
  7886.  
  7887. _________________________________________________________________
  7888. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  7889. =========================================================================
  7890. Date:         Wed, 18 May 1994 09:21:51 -0800
  7891. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7892. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7893. From:         David Lewis <lewis@NETCOM.COM>
  7894. Subject:      Frontier and RAM disks/floppies
  7895.  
  7896. I'm having trouble getting Frontier's file.getSpecialFolderPath routine and
  7897. the setStartup extension to work. I can't get setStartup to select a RAM
  7898. disk, although I can select any of my hard drives. The control panel
  7899. afterwards will show no drive highlighted (although I can then select the
  7900. RAM disk with no problem). In the case of file.getSpecialFolderPath, the
  7901. "create" boolean doesn't seem to work. Executing
  7902.         file.getSpecialFolderPath ("RAM Disk:", "System Folder", true)
  7903. will give the error 'The file "System Folder" wasn't found.' This is also
  7904. true with a hard drive if it doesn't already have a system folder. If the
  7905. folder is already there, the path is returned correctly.
  7906. I'm running Frontier 3.0.3 on a Duo 230 with System 7.1, System Update 3.0,
  7907. AppleEvent Manager 1.0.3, and Thread Manager 2.0.1, if any of that makes a
  7908. difference. Thanks in advance (, John :-) ).
  7909.  
  7910.         David
  7911.  
  7912. David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  7913. =========================================================================
  7914. Date:         Wed, 18 May 1994 09:46:27 -0700
  7915. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7916. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7917. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  7918. Subject:      Re: Frontier and RAM disks/floppies
  7919.  
  7920. At 09:21 5/18/94 -0800, David Lewis wrote:
  7921. >I'm having trouble getting Frontier's file.getSpecialFolderPath routine and
  7922. >the setStartup extension to work. I can't get setStartup to select a RAM
  7923. >disk, although I can select any of my hard drives. The control panel
  7924. >afterwards will show no drive highlighted (although I can then select the
  7925. >RAM disk with no problem). In the case of file.getSpecialFolderPath, the
  7926. >"create" boolean doesn't seem to work. Executing
  7927. >        file.getSpecialFolderPath ("RAM Disk:", "System Folder", true)
  7928. >will give the error 'The file "System Folder" wasn't found.' This is also
  7929. >true with a hard drive if it doesn't already have a system folder. If the
  7930. >folder is already there, the path is returned correctly.
  7931. >I'm running Frontier 3.0.3 on a Duo 230 with System 7.1, System Update 3.0,
  7932. >AppleEvent Manager 1.0.3, and Thread Manager 2.0.1, if any of that makes a
  7933. >difference. Thanks in advance (, John :-) ).
  7934.  
  7935. Hi, David...
  7936.    file.getSpecialFolderPath () uses the FindFolder () toolbox trap.  One
  7937. thing that the trap will not do is create a System Folder.  This is spelled
  7938. out in Inside Macintosh.  [Given that a System Folder exists, it will
  7939. create subfolders within it.]  That seems like a reasonable restriction,
  7940. since a folder named "System Folder" isn't sufficient...it needs to contain
  7941. a System file and a Finder file (and a few other odds and ends).
  7942.  
  7943.    The DocServer description for file.getSpecialFolderPath () does mention
  7944. this restriction (under Notes):
  7945.  
  7946. >* If the folder parameter is not valid, or the requested folder could not be
  7947. >  found or created, an error is generated.
  7948. >* If the desired folder belongs in the System Folder and the volume does not
  7949. >  contain a System Folder, no System Folder will be created, and an error will
  7950. >  occur.
  7951.  
  7952. I can't say anything about the setStartup extension, since I don't think I
  7953. have it.  --John
  7954.  
  7955. --
  7956. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  7957. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  7958. =========================================================================
  7959. Date:         Wed, 18 May 1994 10:00:20 -0700
  7960. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7961. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7962. From:         Doug Baron <userland@NETCOM.COM>
  7963. Subject:      Re: Frontier and RAM disks/floppies
  7964. In-Reply-To:  <199405181627.JAA15420@netcom.com> from "David Lewis" at May 18,
  7965.               94 09:21:51 am
  7966.  
  7967. >
  7968. > I'm having trouble getting Frontier's file.getSpecialFolderPath routine and
  7969. > the setStartup extension to work. I can't get setStartup to select a RAM
  7970. > disk, although I can select any of my hard drives. The control panel
  7971. > afterwards will show no drive highlighted (although I can then select the
  7972. > RAM disk with no problem).
  7973.  
  7974. Since Frontier doesn't know anything about what the setStartup extension
  7975. is doing, this sounds like a problem with setStartup -- or with the RAM
  7976. disk software.
  7977.  
  7978. > In the case of file.getSpecialFolderPath, the "create" boolean doesn't
  7979. > seem to work. Executing
  7980. >         file.getSpecialFolderPath ("RAM Disk:", "System Folder", true)
  7981. > will give the error 'The file "System Folder" wasn't found.' This is also
  7982. > true with a hard drive if it doesn't already have a system folder. If the
  7983. > folder is already there, the path is returned correctly.
  7984. > I'm running Frontier 3.0.3 on a Duo 230 with System 7.1, System Update 3.0,
  7985. > AppleEvent Manager 1.0.3, and Thread Manager 2.0.1, if any of that makes a
  7986. > difference. Thanks in advance (, John :-) ).
  7987. >
  7988. >         David
  7989. >
  7990. > David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  7991. >
  7992.  
  7993. The file.getSystemFolderPath verb maps directly to the OS's  FindFolder
  7994. function. Although the "create if necessary" flag is set, this function
  7995. can't be use to create a System Folder; it wouldn't be a valid one. In
  7996. the case of the System's subfolders, simply creating an empty folder does
  7997. the job; the System Folder itself requires an installer.
  7998.  
  7999. If you really want to create an empty System Folder if it's not there,
  8000. use the file.sureFolder verb.
  8001.  
  8002. Doug
  8003. =========================================================================
  8004. Date:         Wed, 18 May 1994 10:07:30 -0900
  8005. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8006. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8007. From:         Dan Callaway <dan@LANMINDS.COM>
  8008. Subject:      Re: [?] Erase Disk in Finder
  8009.  
  8010. > I work as a User Assistant at Georgia Tech, and a weekly routine is to
  8011. > completely erase the hard drives of everything and then reinstall the
  8012. > system software off of the local server.
  8013.  
  8014. You might want to give Frontier a try. Frontier ships with a "Network" that 
  8015. will
  8016.  do
  8017. close to what you want.
  8018.  
  8019. (here is a section of the read me file that comes with it...)
  8020.  
  8021. Imagine youUre the network manager for a classroom full of Macintoshes. Every
  8022. day, dozens of students come into the lab to do their assignments and projects.
  8023. In the course of a day, new files get created, essential files are accidentally
  8024. deleted. So once a day, you shut the system down and visit all the computers 
  8025. and
  8026. replace missing files and delete extraneous ones, by manually pointing, 
  8027. clicking
  8028. and dragging.
  8029.  
  8030. NightWatch -- the first UserLand network utility, does this for you
  8031.  automatically
  8032. and very carefully. It produces a detailed report of all the updating and
  8033. cleaning up it did. And because NightWatch is implemented using Frontier
  8034. scripts, you can customize NightWatch to exactly suit your needs.
  8035.  
  8036. HereUs how you install NightWatch. From the NetUtils menu, select each command
  8037. in the RConfigure NightWatchS sub-menu. First youUll set your "original" 
  8038. folder,
  8039. the one that contains the master clean copy of all the files and folders you
  8040. want replicated on all the clone machines. Set the original folder by using the
  8041. RSet Original FolderIS command.
  8042.  
  8043. ThereUs a table full of paths to folders on the clone machines called clone
  8044. folders. These folders must be accessible on your FinderUs desktop when
  8045. NightWatch runs. You can add paths to your list of clone folders using the RAdd
  8046. Clone FolderS command.
  8047.  
  8048. If you want to delete clones from your table, select the ROpen Clone TableS
  8049. command, and use the normal Macintosh Cut command to delete any paths you want
  8050. to remove from the table.
  8051.  
  8052. .... etc.....  Good Luck!
  8053.  
  8054. ***************************
  8055. *  --   Dan Callaway  --  *
  8056. * --  dan@lanminds.com -- *
  8057. *  --   Berkeley, CA  --  *
  8058. ***************************
  8059. =========================================================================
  8060. Date:         Wed, 18 May 1994 13:12:14 -0400
  8061. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8062. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8063. From:         Jim <nauta@NCREL.ORG>
  8064. Subject:      Re: [?] Erase Disk in Finder
  8065.  
  8066. >>--Michael Edmondson wrote:
  8067. >>>
  8068. >>>I work as a User Assistant at Georgia Tech, and a weekly routine is to
  8069. >>>completely erase the hard drives of everything and then reinstall the
  8070. >>>system software off of the local server. (A scripting nightmare, and I'm
  8071. >>>just a beginner too!)
  8072. >>
  8073. >>    You're kidding, right? You do this every week!? How many Macs do you
  8074. >>have to do this for?
  8075. >>
  8076. >
  8077. >I know this might be bad form but ... Apple makes software that does
  8078. >exactly what you describe you need. I forget what it is called, maybe
  8079. >"alike" or some such name. No AppleScript involved but probably easier to
  8080. >use. You boot from a floppy on each machine and a fresh version of the hard
  8081. >drive is replicated onto the machines hard drive.
  8082. >
  8083. >Kee Nethery
  8084. >
  8085. >_________________________________________________________________
  8086. >Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  8087. ---------------------------
  8088. The product is called "LIKEWISE" and it would really make this job easy.
  8089. Last I heard, it wasn't reliable over ethernet, but that was a while ago.
  8090. You just set up a folder on the server with all the software for each
  8091. station, including system and finder, and it updates the whole lab.
  8092.  
  8093. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  8094. Jim Nauta                                            phone:     708/218-1275
  8095. North Central Regional Educational Laboratory        fax:       708/571-4716
  8096. 1900 Spring Road, Suite 300                          internet:  nauta@ncrel.org
  8097. Oak Brook, IL  60521                                 Applelink: NCREL
  8098.                                                      AOL:       NAUTA
  8099. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  8100. =========================================================================
  8101. Date:         Wed, 18 May 1994 10:44:58 -0700
  8102. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8103. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8104. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  8105. Subject:      Re: OSA and Hypercard 2.2
  8106.  
  8107. At 15:52 5/18/94 +1200, Michael Norris wrote:
  8108. >This is all very well and good, but how do I transfer an appleScript
  8109. >varaible to a HyperTalk variable?
  8110. >
  8111. >I can go from HC to AS by
  8112. >set ASVar to evaluate "HCVar"
  8113.  
  8114. One of the kinds of elements of the HyperCard application (as viewed from
  8115. AppleScript) is "variable".
  8116.  
  8117. Here's a button script in AppleScript (copied from my experimental stack):
  8118.  
  8119. on mouseUp
  8120.     set variable "foo" to "I am it"
  8121. end mouseUp
  8122.  
  8123.  
  8124. Once that has been executed, this HyperTalk script in another button does
  8125. indeed show the message box containing "I am it":
  8126.  
  8127. on mouseUp
  8128.   global foo
  8129.   put foo
  8130. end mouseUp
  8131.  
  8132.  
  8133. -------------
  8134. One thing to note:  in a previous post, I had a tell application
  8135. "HyperCard" wrapped around messages directed to HyperCard.  This isn't
  8136. necessary (or harmful) in an AppleScript executing within HyperCard.  Just
  8137. as the Script Editor is being told things outside all tells, when you are
  8138. working in Script Editor, HyperCard is the tellee outside of tells when you
  8139. are executing in HyperCard.
  8140.  
  8141.   --John
  8142.  
  8143. --
  8144. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  8145. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  8146. =========================================================================
  8147. Date:         Wed, 18 May 1994 12:02:31 -0700
  8148. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8149. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8150. From:         Jon Pugh <jonpugh@NETCOM.COM>
  8151. Subject:      Re: OSA and Hypercard 2.2
  8152.  
  8153. >Since Quickeys/AppleScript don't understand "on mouseUp", how other
  8154. >scripting langages can be used within Hypercard and mixed with Hypertalk?
  8155.  
  8156. This isn't quite true.  AppleScript completely understands all the
  8157. Hypercard messages when running in Hypercard objects.  If you open the
  8158. Hypercard dictionary in the Script Editor, you will see a section with all
  8159. these messages.
  8160.  
  8161. Try this AppleScript in a button:
  8162.  
  8163.   on mouseUp
  8164.     display dialog "Foo!"
  8165.   end mouseUp
  8166.  
  8167.   on mouseEnter
  8168.     beep
  8169.   end mouseEnter
  8170.  
  8171. Both of these messages are clearly understood.  Hypercard essentially wraps
  8172. every AppleScript with a "tell app Hypercard" block.
  8173.  
  8174. Unfortunately, QuicKeys doesn't cope as well.  QuicKeys only understands an
  8175. implicit run message and Hypercard doesn't send those directly from the UI.
  8176. Instead, you need a redirection like so:
  8177.  
  8178. AppleScript Button "Foo":
  8179.  
  8180.   on mouseUp
  8181.     tell button "Bar" to run
  8182.   end mouseUp
  8183.  
  8184. QuicKeys Button "Bar":
  8185.  
  8186.   Click (4, 20 Screen) - (0, 0 Mouse)
  8187.   Wait Application "Finder"
  8188.   Menu "About This Macintosh=8A" Apple_Menu
  8189.   Wait Window Name_Is "About This Macintosh"
  8190.   Mousie Close_Window
  8191.  
  8192. This is how you can run QuicKeys scripts from within Hypercard.  Another
  8193. choice is to use my "run script resource" osax which allows you to place
  8194. named resources into your stack (or script application) and run them.  This
  8195. gets them out of the way and hides them from nosy people.  You can also
  8196. save scripts "run only" and run them this way thus protecting your scripts
  8197. from prying eyes, even in Hypercard (which does not support run only
  8198. scripts otherwise).
  8199.  
  8200. An implication of this stuff is that you cannot make a stack with a mess of
  8201. QuicKeys scripts in its stack script as a library.  You must make a card
  8202. (or cards) full of buttons and some sort of redirection script in the stack
  8203. script.  With AppleScript, you just make a stack with the stack script full
  8204. of helpful AppleScript handlers and start using it.  Then your handlers are
  8205. all seemlessly integrated into your Hypercard scripting environment.
  8206.  
  8207. >I understand now that only the concept of OSA has been
  8208. >implemented in Hypercard, and that it is not very useful now because the
  8209. >foreign scripting langage must understand Hypercard messages (this not
  8210. >the case of Quickeys). :-(
  8211.  
  8212. Au contraire, OSA is extremely useful because AppleScript does understand
  8213. Hypercard's messages and can communicate with other Hypercard parts to
  8214. cover the limitations that other OSA languages have.
  8215.  
  8216. >This is all very well and good, but how do I transfer an appleScript
  8217. >varaible to a HyperTalk variable?
  8218. >
  8219. >I can go from HC to AS by
  8220. >set ASVar to evaluate "HCVar"
  8221. >
  8222. >but how do I go in reverse?
  8223.  
  8224. The simplest way is to provide a routine to return it.  You can also access
  8225. properties of scripts.  Given three buttons:
  8226.  
  8227. AppleScript Button "Foo":
  8228.  
  8229.   property foobar : "Yoich!"
  8230.  
  8231.   on getFoobar()
  8232.     return foobar
  8233.   end getFoobar
  8234.  
  8235.  
  8236. AppleScript Button "Bar":
  8237.  
  8238.   on mouseUp
  8239.     set x to script of button "Foo" as script -- text is the default
  8240.     answer x's foobar
  8241.   end mouseUp
  8242.  
  8243. HyperTalk button "Fubar":
  8244.  
  8245.   on mouseUp
  8246.     send getfoobar to button "foo"
  8247.     answer the result
  8248.   end mouseUp
  8249.  
  8250. Pressing button "Bar" or "Fubar" will result in "Yoich!" being displayed.
  8251.  
  8252. >Jon Pugh will explain how it works in detail, I suspect.
  8253.  
  8254. Your confidence is inspiring.  ;)
  8255.  
  8256. Jon
  8257. =========================================================================
  8258. Date:         Wed, 18 May 1994 12:02:35 -0700
  8259. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8260. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8261. From:         Jon Pugh <jonpugh@NETCOM.COM>
  8262. Subject:      Re: Copying Folders without Finder coming to the front
  8263.  
  8264. >It seems like in can be done
  8265. >with files using Jon Pugh's "copyFile" but that (or I can't get it to work)
  8266. >does'nt seem to work for folders.
  8267.  
  8268. Correct.  It doesn't work with folders.  I'm going to fix this, but I'm up
  8269. to my neck in work and it will be a while before I get around to it.
  8270.  
  8271. Jon
  8272. =========================================================================
  8273. Date:         Wed, 18 May 1994 15:03:21 -0400
  8274. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8275. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8276. From:         Michael Edmondson <ccastme@PRISM.GATECH.EDU>
  8277. Subject:      Re: [?] Erase Disk in Finder
  8278. In-Reply-To:  <199405181550.LAA07421@acme.gatech.edu> from "Brian V. Hughes" at
  8279.               May 18, 94 11:28:43 am
  8280.  
  8281. First of all, thanks for all the input, suggestions and opinions.
  8282.  
  8283. >     You're kidding, right? You do this every week!? How many Macs do you
  8284. > have to do this for?
  8285.  
  8286. Unfortunately, no, I'm not kidding.  (Hey, they're not MY rules!)
  8287. We have six Mac labs (not total, of course; these are the public ones),
  8288. each lab has around 40 Macs.  And of course, the reason we initialize
  8289. instead of simply erasing the unneccessary files is because -- it's
  8290. simplier that way!  Sure we could use all sorts of optimizers and such
  8291. utilities, but initialization is FREE!  OIT is very cheap, which brings
  8292. up another issue -- how much is it going to cost to automate this?
  8293.  
  8294. Frontier:  sounds like it does all I need, but I'm a beginner to
  8295.      AppleScript and haven't even *glanced* at Frontier scripts...
  8296.  
  8297. Pump'n snatch:  Looking into it, but if it's shareware, it probably
  8298.      won't be used.
  8299.  
  8300. Likewise:  If it's from Apple, it would be seriously considered, but..
  8301.  
  8302. SCRIPTABLE FINDER!  This is what would be great; however, it wouldn't
  8303. be put on any of the machines until it was mandatory (Sys 7.5), and
  8304. even then the Macs wouldn't be upgraded until it was really REALLY
  8305. deemed neccessary.  *sigh*
  8306.  
  8307. > First of all, you almost never need to zap the
  8308. > PRAM on a Mac. You definitely don't need to do this on a weekly basis.
  8309. > Secondly, erasing the Apple control panels and extensions really isn't
  8310. > doing a whole lot. All they really do is provide an interface to the
  8311. > resources in the System file. A better solution would be to trash the
  8312. > System and the Finder every week, and copy fresh copies to the hard
  8313.  
  8314. Imagine you have a Mac lab that's open 24 hours a day... (we got two)
  8315. The other labs are staffed until midnight.  Since we can't close the
  8316. clusters to refresh all the machines at once, we do a couple each day.
  8317. To make a long story short, there's just not a lot of time to waste
  8318. playing with different applications.  People put all sorts of programs
  8319. and inits that can conflict with the system, so instead of going through
  8320. all the folders (Control Panels, Extensions, Preferences) we just trash
  8321. 'em all.  Trashing the System and Finder are temporary solutions, which
  8322. I use for those times when Word and WordPerfect crash on start-up...
  8323.  
  8324. Looks like I'll have to shell out some bucks for a scriptable Finder...
  8325. (Did I mention that I'm doing this all on my own and I'm not getting
  8326. paid for it?  Working hard just to find some way to cut corners.  =)
  8327.  
  8328. --
  8329. Michael Edmondson  -=-  ccastme@acme.gatech.edu  -=-  Macintosh User Assistant
  8330.         Georgia Tech:  Where the people work, and the computers don't.
  8331. =========================================================================
  8332. Date:         Wed, 18 May 1994 15:37:48 CDT
  8333. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8334. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8335. From:         Tom Donovan <donovan@COVIS.NWU.EDU>
  8336. Subject:      Re: [?] Erase Disk in Finder
  8337.  
  8338. >I work as a User Assistant at Georgia Tech, and a weekly routine is to
  8339. >completely erase the hard drives of everything and then reinstall the
  8340. >system software off of the local server. (A scripting nightmare, and I'm
  8341. >just a beginner too!)  I've looked all over and have never found an 'Erase
  8342. >Disk' scripting addition.  I've considered using Menu Events, but wonder if
  8343. >perhaps someone else had another suggestion.
  8344. >
  8345. >The whole refresh procedure consists of zapping the PRAM, booting off a
  8346. >floppy (which doesn't have much space to begin with), erasing the hard
  8347. >drive after making sure it has the right name, mounting the server and then
  8348. >copying the neccessary folders onto the hard drive, then rebooting and
  8349. >setting all the control panels.  Although when looking at the entire
  8350. >process, I think just the first part (before rebooting) would suffice...for
  8351. >now.
  8352. >
  8353. >Hey, it's a great way for a beginner to learn how to script..
  8354. >Start an enormous task before learning the basics  ;)
  8355. >
  8356. >Michael Edmondson  -=-  ccastme@acme.gatech.edu  -=-  Macintosh User
  8357. >Assistant
  8358.  
  8359. Michael,
  8360.  
  8361. Have you ever heard of RevRdist?  It does exactly what you need, if I
  8362. understand your message correctly.  We use it to keep two small labs of
  8363. Quadra 700s clean.  It works by comparing the client hard disk to a master
  8364. folder on the server.  You use a script to control how RevRdist handles
  8365. discrepancies b/w the client and the master:  delete anything found on the
  8366. client that doesn't exist on the master, replace anything that has
  8367. disappeared from the client, replace a client version of a file with a
  8368. newer version from the master, lock files on the client, make files
  8369. invisible on the client, and much more.
  8370.  
  8371. You decide when RevRdist runs.  We put it in the Startup Items folder so a
  8372. restart is all that is needed to clean up a client Mac.
  8373.  
  8374. There is also an extension (called RRHelper) that you configure to maintain
  8375. a whole bunch of settings, like printer selection, volume name, Mac name,
  8376. MacTCP settings, sound volume, monitor settings, virtual memory, etc.  It
  8377. loads before any other extensions and resets any settings that have been
  8378. changed (it's even smart enough to force a restart if it resets something
  8379. like virtual mem.).
  8380.  
  8381. I highly recommend RevRdist/RRHelper to keep lab machines clean.  Let me
  8382. know if you would like some more info.
  8383.  
  8384. --Tom
  8385.  
  8386. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  8387. Tom Donovan           "The city is a place where a small boy, as he walks
  8388. Support Specialist     through it, may see something that will tell him what
  8389. CoVis Project          he wants to do his whole life."
  8390. Northwestern Univ.
  8391.                                                     --Louis I. Kahn
  8392. E-mail: donovan@covis.nwu.edu
  8393. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  8394. =========================================================================
  8395. Date:         Wed, 18 May 1994 15:59:37 CDT
  8396. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8397. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8398. From:         Tom Donovan <donovan@COVIS.NWU.EDU>
  8399. Subject:      Re: [?] Erase Disk in Finder
  8400.  
  8401. >simplier that way!  Sure we could use all sorts of optimizers and such
  8402. >utilities, but initialization is FREE!  OIT is very cheap, which brings
  8403. >up another issue -- how much is it going to cost to automate this?
  8404.  
  8405. I forgot to mention that RevRdist is free!
  8406.  
  8407. --Tom
  8408.  
  8409. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  8410. Tom Donovan           "The city is a place where a small boy, as he walks
  8411. Support Specialist     through it, may see something that will tell him what
  8412. CoVis Project          he wants to do his whole life."
  8413. Northwestern Univ.
  8414.                                                     --Louis I. Kahn
  8415. E-mail: donovan@covis.nwu.edu
  8416. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  8417. =========================================================================
  8418. Date:         Wed, 18 May 1994 14:22:38 -0700
  8419. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8420. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8421. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  8422. Subject:      Re: [?] Erase Disk in Finder
  8423.  
  8424. >First of all, thanks for all the input, suggestions and opinions.
  8425. >
  8426. >>     You're kidding, right? You do this every week!? How many Macs do you
  8427. >> have to do this for?
  8428. >
  8429. >Unfortunately, no, I'm not kidding.  (Hey, they're not MY rules!)
  8430. >We have six Mac labs (not total, of course; these are the public ones),
  8431. >each lab has around 40 Macs.  And of course, the reason we initialize
  8432. >instead of simply erasing the unneccessary files is because -- it's
  8433. >simplier that way!  Sure we could use all sorts of optimizers and such
  8434. >utilities, but initialization is FREE!  OIT is very cheap, which brings
  8435. >up another issue -- how much is it going to cost to automate this?
  8436.  
  8437. Michael,
  8438.    Here's one possible method:
  8439.  
  8440. 1.  Scrounge up an external disk drive (thi$ i$ the hard part).
  8441.  
  8442. 2.  Set that drive up containing what you want a fresh lab Mac to contain,
  8443. including the System folder.
  8444.  
  8445. 3.  Carry the drive around.  Shut down the target Mac...plug in your
  8446. drive...power up.  Set the Mac to start up from your drive.
  8447.  
  8448. 4.  Erase, and Finder copy.
  8449.  
  8450. 5.  Shut down.
  8451.  
  8452. 6.  Unplug your drive.
  8453.  
  8454. Note:  for most of your lab Macs, it may not be necessary to reset the
  8455. startup volume to that machine's own drive each time.  Try leaving it set
  8456. to your carry-around drive (with a really unlikely name).  When a Mac
  8457. starts up and can't find the designated startup volume, it picks another.
  8458. (SCSI 0, then 6 down to 1, as I recall, are checked.)
  8459.  
  8460.    --John
  8461.  
  8462. --
  8463. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  8464. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  8465. =========================================================================
  8466. Date:         Wed, 18 May 1994 18:19:29 -0400
  8467. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8468. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8469. From:         Michael Edmondson <ccastme@PRISM.GATECH.EDU>
  8470. Subject:      Re: [?] Erase Disk in Finder
  8471. In-Reply-To:  <199405182204.SAA14985@acme.gatech.edu> from "Tom Donovan" at May
  8472.               18, 94 03:37:48 pm
  8473.  
  8474. Ummm.. I got this letter after the other one.. I think that means I'm getting
  8475. email out of order now.  *sigh*  God this school sux!
  8476.  
  8477. > Have you ever heard of RevRdist?
  8478.  
  8479. In short, no, I've never heard of RevRdist, but it does sound EXACTLY like
  8480. what I need.. so where do I get it?  =)
  8481.  
  8482. > I highly recommend RevRdist/RRHelper to keep lab machines clean.  Let me
  8483. > know if you would like some more info.
  8484.  
  8485. more, More, MORE!  Gimme, GIMME!  =)  If it works, it would be GREAT!
  8486.  
  8487. --
  8488. Michael Edmondson  -=-  ccastme@acme.gatech.edu  -=-  Macintosh User Assistant
  8489.         Georgia Tech:  Where the people work, and the computers don't.
  8490. =========================================================================
  8491. Date:         Wed, 18 May 1994 20:38:05 -0400
  8492. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8493. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8494. From:         "Lavallee, Marc" <r27764@ER.UQAM.CA>
  8495. Subject:      Re: [?] Erase Disk in Finder
  8496.  
  8497. One of the best remote finder scripting tool is "FinderEvents", a
  8498. Hypercard XCMD that send Apple events to the finder. There's also plenty
  8499. of good XCMDs to copy, erase, alias, etc, especially the ones from
  8500. Rinaldi. So if you can run a Hypercard stack remotely, all operations can
  8501. be done from this stack, localy on each disk.
  8502.  
  8503.  Marc Lavallee
  8504.  r27764@er.uqam.ca
  8505. =========================================================================
  8506. Date:         Wed, 18 May 1994 20:22:49 CDT
  8507. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8508. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8509. From:         Tom Donovan <donovan@COVIS.NWU.EDU>
  8510. Subject:      RevRdist ftp site
  8511.  
  8512. >Date: Wed, 18 May 94 16:37:07 PDT
  8513. >From: neilrest@ecotone.toad.com (Neil Rest)
  8514. >To: donovan@COVIS.NWU.EDU
  8515. >Subject: re: RevRdist
  8516. >
  8517. >> I forgot to mention that RevRdist is free!
  8518. >Unless I missed it (which I very well may have!), you also didn't mention
  8519. >where to get it!
  8520. >        Neil
  8521.  
  8522.  
  8523. You certainly didn't miss it--it wasn't there! My apologies for the
  8524. omission.  I'm new to university computing and I assumed that RevRdist was
  8525. more widely known.
  8526.  
  8527. You can get it by anonymous ftp from ftp.cc.purdue.edu in the directory
  8528. /pub/mac.  The documentation is in a separate file.
  8529.  
  8530. If you have trouble making it do what you want, there is a RevRdist mailing
  8531. list at listserv@sage.cc.purdue.edu ('subscribe revrdist your name')
  8532.  
  8533. --Tom
  8534.  
  8535. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  8536. Tom Donovan           "The city is a place where a small boy, as he walks
  8537. Support Specialist     through it, may see something that will tell him what
  8538. CoVis Project          he wants to do his whole life."
  8539. Northwestern Univ.
  8540.                                                     --Louis I. Kahn
  8541. E-mail: donovan@covis.nwu.edu
  8542. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  8543. =========================================================================
  8544. Date:         Thu, 19 May 1994 18:31:17 +1200
  8545. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8546. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8547. From:         Michael Norris <michael.norris@STONEBOW.OTAGO.AC.NZ>
  8548. Subject:      AppleScript globals in hypercard
  8549.  
  8550. Firstly, thanks to John, Jon & Tom for replying to my query.
  8551.  
  8552. One other question about AppleScripts in a HyperCard environment - can they
  8553. have their own global variables or does it have to use HC's?
  8554.  
  8555. EG:
  8556.  
  8557. In one button:
  8558.  
  8559. on mouseUp
  8560.         global bob
  8561.         copy "HI" to bob
  8562. end mouseUP
  8563.  
  8564. in another:
  8565. on mouseUP
  8566.         global bob
  8567.         display dialog bob
  8568. end mouseUP
  8569.  
  8570. Clicking on the first button, and then on the second usually ends up either
  8571. with nothing displayed in a dialog box or with a "bob is not defined"
  8572. notice.
  8573.  
  8574. Any help?
  8575.  
  8576. Cheers,
  8577.  
  8578. Michael Norris,
  8579. CAL Consultant,
  8580. University of Otago,
  8581. PO Box 56,
  8582. Dunedin,
  8583. New Zealand.
  8584. ---------------------
  8585. Ph:(03) 479-7705
  8586. E-Mail: michael.norris@stonebow.otago.ac.nz
  8587. =========================================================================
  8588. Date:         Thu, 19 May 1994 09:17:18 -0500
  8589. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8590. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8591. From:         Herb Schilling <hschilling@LERC.NASA.GOV>
  8592. Subject:      Re: Script handlers strangeness
  8593.  
  8594. Hello,
  8595.  
  8596.  A while ago, I sent out a solution to a problem I had with calling
  8597. handlers in script objects in Frontmost. Since then, I have made  the code
  8598. a little simpler. Here it is. ( I also changed "yoursTruly" to "self". )
  8599. The "-- **********" indicates a modified line.
  8600.  
  8601.  
  8602. ===========================
  8603. In application script
  8604. ===========================
  8605. on run()
  8606.      set thing1 to CreateThing()
  8607. end run
  8608.  
  8609. on CreateThing() -- "constructor" of thing
  8610.         script thing
  8611.         property self : {} -- *******
  8612.                 on PrivateRoutine()
  8613.                         -- do something
  8614.                 end PrivateRoutine
  8615.  
  8616.                 on PublicRoutine()
  8617.                         tell self to PrivateRoutine() -- **********
  8618.                 end PublicRoutine
  8619.  
  8620.         end script
  8621.        set self of result to result -- **********
  8622. end CreateThing
  8623.  
  8624.  
  8625. ===========================
  8626. In window script
  8627. ===========================
  8628. tell my thing1 to PublicRoutine()
  8629.  
  8630. --
  8631. Herb Schilling NASA Lewis Research Center 21000 Brookpark Road Mail Stop 142-4
  8632. Cleveland Ohio 44135 (216) 433-8955 Fax:(216)433-8000 
  8633. sshws@convx1.lerc.nasa.gov
  8634. AppleLink: SCHILLING.H
  8635. =========================================================================
  8636. Date:         Thu, 19 May 1994 09:30:52 -0500
  8637. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8638. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8639. From:         David Myers <dcmyers@ACCESS.DIGEX.NET>
  8640. Subject:      "Coprocessor not installed" bomb in PPC version of Frontier
  8641.  
  8642. Just upgraded to the native version of UserLand Frontier yesterday.
  8643. Everything worked great, until I quit the application.  Immediately
  8644. and invariably upon quitting, I get the "Coprocessor not installed"
  8645. bomb.  Happens every time.  Has anybody seen this?  A bug, or did I
  8646. not install something I was supposed to install?
  8647.  
  8648. -David.
  8649.  
  8650.  
  8651. ____________________________________________________
  8652.  
  8653. David C. Myers
  8654. dcmyers@access.digex.net
  8655. =========================================================================
  8656. Date:         Thu, 19 May 1994 08:52:04 -0500
  8657. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8658. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8659. From:         Fred Terry <pfterry@LKS.CSI.COM>
  8660. Subject:      Re: "Coprocessor not installed" bomb in PPC version of Frontier
  8661. In-Reply-To:  Your message of "Thu, 19 May 94 09:30:52 CDT"
  8662.  
  8663. > Just upgraded to the native version of UserLand Frontier yesterday.
  8664. > Everything worked great, until I quit the application.  Immediately
  8665. > and invariably upon quitting, I get the "Coprocessor not installed"
  8666. > bomb.  Happens every time.  Has anybody seen this?  A bug, or did I
  8667. > not install something I was supposed to install?
  8668.  
  8669. I'm sure Doug or John will have an explanation for this, but I did notice that
  8670. there's a PPC updater on CompuServe. Not having a PowerMac, I didn't pulll it
  8671. down. Perhaps someone who does have it could mail it to me and I'll put it on
  8672. gaea?
  8673.  
  8674. pf
  8675. =========================================================================
  8676. Date:         Thu, 19 May 1994 07:13:51 -0700
  8677. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8678. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8679. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  8680. Subject:      Re: "Coprocessor not installed" bomb in PPC version of Frontier
  8681.  
  8682. >Just upgraded to the native version of UserLand Frontier yesterday.
  8683. >Everything worked great, until I quit the application.  Immediately
  8684. >and invariably upon quitting, I get the "Coprocessor not installed"
  8685. >bomb.  Happens every time.  Has anybody seen this?  A bug, or did I
  8686. >not install something I was supposed to install?
  8687.  
  8688. I haven't seen that crash here (and I've been using the native PPC version
  8689. of Frontier for some time).  Most of the things you might forget to install
  8690. will cause the program to refuse to start up if they are missing.
  8691.  
  8692. Did you install the 2.0.1 version of Apple's Thread Manager?  [Supplied
  8693. with PowerMac upgrade.]
  8694.  
  8695.    --John
  8696.  
  8697. --
  8698. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  8699. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  8700. =========================================================================
  8701. Date:         Thu, 19 May 1994 10:44:59 -0500
  8702. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8703. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8704. From:         David Myers <dcmyers@ACCESS.DIGEX.NET>
  8705. Subject:      Re: "Coprocessor not installed" bomb in PPC version of Frontier
  8706.  
  8707. >>Just upgraded to the native version of UserLand Frontier yesterday.
  8708. >>Everything worked great, until I quit the application.  Immediately
  8709. >>and invariably upon quitting, I get the "Coprocessor not installed"
  8710. >>bomb.  Happens every time.  Has anybody seen this?  A bug, or did I
  8711. >>not install something I was supposed to install?
  8712. >
  8713. >I haven't seen that crash here (and I've been using the native PPC version
  8714. >of Frontier for some time).  Most of the things you might forget to install
  8715. >will cause the program to refuse to start up if they are missing.
  8716. >
  8717. >Did you install the 2.0.1 version of Apple's Thread Manager?  [Supplied
  8718. >with PowerMac upgrade.]
  8719. >
  8720. >   --John
  8721.  
  8722.  
  8723. I've witnessed Frontier's refusal to launch when, for example, I boot up
  8724. with extensions turned off.  No, it certainly does start up -- in fact,
  8725. it works great, until the fateful moment of command-Q.  I've been using
  8726. ThreadManager 2.0.1 for a month now; the AppleScriptLib and ObjectLib
  8727. (or whatever they're called) have been installed since I got the 6100.
  8728. (I didn't install the versions included with the Frontier upgrader,
  8729. but I assume they're no different than the ones that came with the
  8730. machine.  They *looked* identical, in byte count, version number, etc.)
  8731.  
  8732. -David.
  8733.  
  8734.  
  8735. ____________________________________________________
  8736.  
  8737. David C. Myers
  8738. dcmyers@access.digex.net
  8739. =========================================================================
  8740. Date:         Thu, 19 May 1994 08:13:24 -0700
  8741. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8742. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8743. From:         Jon Pugh <jonpugh@NETCOM.COM>
  8744. Subject:      Re: Invisible Scripts !!
  8745.  
  8746. >The menu command "Quit" (or command-Q) won't have any effect.
  8747. >For quitting you must use an <<unlock>> script (see below) or command-alt-esc.
  8748.  
  8749. In any script application, if you press Command-Shift-Q the Quit handler
  8750. will not be called.  This will get around malfunctioning quit handlers or
  8751. techniques like this.
  8752.  
  8753. Jon
  8754. =========================================================================
  8755. Date:         Thu, 19 May 1994 11:39:35 EST
  8756. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8757. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8758. From:         "Aaron E. McClennen" <Aaron_E._McClennen@HABITAT.ORG>
  8759. Organization: Habitat for Humanity International
  8760. Subject:      Re: [?] Erase Disk in Finder
  8761.  
  8762. This is actually a variation of what you need, but it works for what we need. 
  8763. We
  8764. were installing about 4 Macs a week for several months and I wrote a suite of
  8765. scripts to ease the process.
  8766.  
  8767. There is an external HD that we boot from, reformat the internal HD, then 
  8768. launch
  8769. frontier. the first script sets the time renames the HD sets up some drop
  8770. folders then throws up a dialog box i created in resedit for the operator to
  8771. choose what software, and system to install.
  8772.  
  8773. The operator then restarts the machine with the internal HD as the system disk.
  8774. and runs a couple of other scripts. One to open all the control panels so they
  8775. can be configured properly. (for a while this was done with quickkeys, but that
  8776. got dropped in a revision) and another to create aliases for all applications 
  8777. in
  8778. the first few levels of the HD. Some are placed in Apple Menu Items while 
  8779. others
  8780. are placed in a temporary folder for easy disposal.
  8781.  
  8782. A couple of related scripts for when a person is given a better machine we have
  8783. scripts that go through the System, Software, and Utilities folders looking for
  8784. anomalies that will need to be copied to the new machine.
  8785.  
  8786. Sorry to ramble on blowing my own horn, but Michael's problem inspired me to
  8787. share what I have done. Besides I will be at GA tech in the fall as a masters
  8788. student.
  8789.  
  8790. Aaron_E._McClennen@habitat.org
  8791.  
  8792. Habitat for Humanity International
  8793. "Building houses with GodUs people in need."
  8794. =========================================================================
  8795. Date:         Thu, 19 May 1994 14:39:23 EDT
  8796. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8797. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8798. From:         Shaddar@AOL.COM
  8799. Subject:      Choose Folder?
  8800.  
  8801. Excuse me if this is a stupid question, I'm just getting started with
  8802. applescript...
  8803.  
  8804. Is there any way to let the user choose a folder similarly to the "choose
  8805. file" command?
  8806.  
  8807. Thanks in advance  :-)
  8808. =========================================================================
  8809. Date:         Thu, 19 May 1994 14:00:03 -0500
  8810. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8811. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8812. From:         Fred Terry <pfterry@LKS.CSI.COM>
  8813. Subject:      Re: Choose Folder?
  8814. In-Reply-To:  Your message of "Thu, 19 May 94 14:39:23 EDT"
  8815.  
  8816. >Excuse me if this is a stupid question, I'm just getting started with
  8817. >applescript...
  8818. >
  8819. >Is there any way to let the user choose a folder similarly to the "choose
  8820. >file" command?
  8821.  
  8822. Check out the Choose File/Folder osax in the Script Tools set of osaxen.
  8823.  
  8824. (ftp://gaea.kgs.ukans.edu/applescript/osaxen/ScriptTools1.3.sit.hqx)
  8825.  
  8826. >Thanks in advance  :-)
  8827.  
  8828. You're welcome. :-)
  8829.  
  8830. pf
  8831.  
  8832.  
  8833. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  8834. Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
  8835. =========================================================================
  8836. Date:         Thu, 19 May 1994 15:12:35 CDT
  8837. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8838. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8839. From:         Dave Hillman <d-hillman@UCHICAGO.EDU>
  8840. Subject:      Sending Eudora Message
  8841.  
  8842. I'd appreciate it if somebody could help with this Eudora script I've
  8843. downloaded from gaea.  The SendMail droplet only seems to Queue the message
  8844. containing the dropped file, even if I name the droplet "myEmailAddress S"
  8845. which according to the script description should tell Eudora to send the
  8846. file immediately.
  8847.  
  8848. any help much appreciated,
  8849. dave
  8850.  
  8851. ________________________________________________________________________
  8852. Dave Hillman           "Some people love the sound of their own voice...
  8853. d-hillman@uchicago.edu      I love the sound of
  8854.                                  my own footsteps."
  8855. =========================================================================
  8856. Date:         Thu, 19 May 1994 23:18:00 +0100
  8857. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8858. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8859. From:         Christian Orellana <muscabo@DFI.AAU.DK>
  8860. Subject:      Re: Sending Eudora Message & a question!
  8861.  
  8862. >I'd appreciate it if somebody could help with this Eudora script I've
  8863. >downloaded from gaea.  The SendMail droplet only seems to Queue the message
  8864. >containing the dropped file, even if I name the droplet "myEmailAddress S"
  8865. >which according to the script description should tell Eudora to send the
  8866. >file immediately.
  8867. >
  8868. >any help much appreciated,
  8869. >dave
  8870. >
  8871. Since I'm responsible for this script, I suppose I should be the one to
  8872. answer you.
  8873. I the dialog "switches", which you get at through the "special" menu in
  8874. Eudora, try turning "send on check" on - that should do it.
  8875. If for some reason you do not want to do that, simply change the line
  8876. "connect" (in the last part of the script) to "connect with send", which
  8877. should work just as well.
  8878.  
  8879. I would like to mention that I am very new to AppleScripting, and only
  8880. wrote this script because nobody else seemed to have done anything similar.
  8881. Therefore the script is far from perfect, so if any of you script wizzards
  8882. out there would like to optimize it - be my guest...
  8883. I, for one, would like to see a lot more contributed scripts of various
  8884. kinds on Gaea, by some of all the scripters out there, for us newbies to
  8885. study and use.
  8886.  
  8887. Oh - and a question. Why is it that running a script with osa Menu halts
  8888. everything else, making it impossible to switch applications while the
  8889. script is running?
  8890. Is there a fix for this?
  8891.  
  8892.  
  8893. Best regards -
  8894. Christian A.Borlund Orellana
  8895. Institute of Physics and Astronomy Aarhus University.
  8896. ______________________________________________________
  8897. Internet e-mail:        muscabo@dfi.aau.dk
  8898. voice:                  +45-86102798
  8899. mail:                   Dr.Margrethesvej 11,3.th.
  8900.                         8200 Aarhus N, DENMARK.
  8901. ______________________________________________________
  8902. =========================================================================
  8903. Date:         Thu, 19 May 1994 18:47:00 EDT
  8904. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8905. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8906. From:         VictorOJ@AOL.COM
  8907. Subject:      Re: Sending Eudora Message & a question!
  8908.  
  8909. HOW DO I INsUBSCRIBE to tHE LIST??
  8910. =========================================================================
  8911. Date:         Thu, 19 May 1994 16:58:11 -0600
  8912. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8913. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8914. From:         Kyle Maxwell <maxwell@CC.DIXIE.EDU>
  8915. Subject:      Re: Sending Eudora Message & a question!
  8916.  
  8917. >HOW DO I INsUBSCRIBE to tHE LIST??
  8918.  
  8919. Gawd, an AOL user...
  8920.  
  8921. Send "SIGNOFF MACSCRPT"  to LISTSERV@DARTCMS1.BITNET (or
  8922. LISTSERV@DARTCMS1.DARTMOUTH.EDU).
  8923.  
  8924. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  8925. "I'd feel worse if I weren't under such heavy sedation..."
  8926. -David St. Hubbins, Spinal Tap
  8927. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  8928. =========================================================================
  8929. Date:         Thu, 19 May 1994 16:30:21 -0700
  8930. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8931. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8932. From:         "William E. Elston" <welston@HALCYON.HALCYON.COM>
  8933. Subject:      Re: Sending Eudora Message & a question!
  8934.  
  8935. >HOW DO I INsUBSCRIBE to tHE LIST??
  8936.  
  8937. >Date:  Thu, 5 May 1994 10:28:44 EDT
  8938. >Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8939. >Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU> From:
  8940. >"Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU> Subject:        MS: Monthly
  8941. >Admin Mailing
  8942. >X-To:  MacScripting <MACSCRPT@dartcms1.Dartmouth.EDU>
  8943. >To: Multiple recipients of list MACSCRPT <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8944. >
  8945. >Save this mail message. It includes all the e-mail addresses you need when
  8946. >dealing with the Mac Scripting mailing list.
  8947. >
  8948. >*** To Unsubscribe from this list:
  8949. >
  8950. >Send to: LISTSERV@dartmouth.edu
  8951. >Subject: unsubscribe
  8952. >Message: signoff macscrpt
  8953. >
  8954. >
  8955. >*** To subscribe to this list:
  8956. >
  8957. >Send to: LISTSERV@dartmouth.edu
  8958. >Subject: subscribe
  8959. >Message: subscribe macscrpt <your full name here>
  8960. >
  8961. >
  8962. >*** To get other info on using this automated system:
  8963. >
  8964. >Send to: LISTSERV@dartmouth.edu
  8965. >Subject: help
  8966. >Message: help
  8967. >
  8968. >
  8969. >*** To ask the human moderators a question:
  8970. >
  8971. >Send to: MacScripting-Request@dartmouth.edu
  8972. >
  8973. >
  8974. >*** To send a message to the mailing list:
  8975. >
  8976. >Send to: MacScripting@dartmouth.edu
  8977. >
  8978. >
  8979. >Thanks.
  8980. >
  8981. >-The Moderators (a very offcial way of saying "Fred & Andy")
  8982. >
  8983. =========================================================================
  8984. Date:         Thu, 19 May 1994 17:45:29 -0700
  8985. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8986. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8987. From:         Doug Baron <userland@NETCOM.COM>
  8988. Subject:      Re: "Coprocessor not installed" bomb in PPC version of Frontier
  8989. In-Reply-To:  <199405191512.IAA13426@mail2> from "David Myers" at May 19,
  8990.               94 10:44:59 am
  8991.  
  8992. > it works great, until the fateful moment of command-Q.  I've been using
  8993. > ThreadManager 2.0.1 for a month now; the AppleScriptLib and ObjectLib
  8994.  
  8995. This sounds like the pre-release version of ThreadManger 2.0.1. It had a
  8996. bug that caused the crash when quitting. The final version doesn't have
  8997. the problem.
  8998.  
  8999. Send me email if you need help locating the extension.
  9000.  
  9001. Doug
  9002. userland@netcom.com
  9003. =========================================================================
  9004. Date:         Fri, 20 May 1994 00:32:01 -0500
  9005. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9006. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9007. From:         Jonathan Bauer <jhbauer@PANIX.COM>
  9008. Subject:      Director/MIDI/AppleScript etc summary
  9009.  
  9010. I recently posted three related (at least in my mind) questions on three
  9011. separate lists, including this one, having to do with using MIDI over a
  9012. network, using Director with MIDI, and AppleScript and MIDI.  I
  9013. concatenated the replies into a single text file (about 27k) with almost no
  9014. editing.  I'd post it to the list, but I don't want to burden anyone with a
  9015. 27k mailing they aren't interested in.  So ... anyone who wants a copy,
  9016. just send me email with the *exact* subject line: "send text" (no quotes)
  9017. and _nothing_ in the body of the message.  After a few days, I'll send it
  9018. out.
  9019.  
  9020. Is this a good way to deal with this?  Should I post it if I get a
  9021. substantial number of replies?  How many is substantial??
  9022.  
  9023. Thanks to everyone who replied!
  9024.  
  9025. /Jonathan <jhbauer@panix.com>
  9026. =========================================================================
  9027. Date:         Fri, 20 May 1994 08:37:15 -0500
  9028. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9029. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9030. From:         David Myers <dcmyers@ACCESS.DIGEX.NET>
  9031. Subject:      Re: "Coprocessor not installed" bomb in PPC version of Frontier
  9032.  
  9033. >> it works great, until the fateful moment of command-Q.  I've been using
  9034. >> ThreadManager 2.0.1 for a month now; the AppleScriptLib and ObjectLib
  9035. >
  9036. >This sounds like the pre-release version of ThreadManger 2.0.1. It had a
  9037. >bug that caused the crash when quitting. The final version doesn't have
  9038. >the problem.
  9039. >
  9040. >Send me email if you need help locating the extension.
  9041. >
  9042. >Doug
  9043. >userland@netcom.com
  9044.  
  9045. Doug--
  9046.  
  9047. My infinite gratitude.  I picked up ThreadManager 2.0.1 a month ago
  9048. from ftp.apple.com, not realizing at the time that it was beta code.
  9049. Replacing my copy with the one that came on the upgrade disk solved
  9050. the problem completely.
  9051.  
  9052. Native Frontier is indeed much faster...
  9053.  
  9054. Unrelated question:  Has anybody interfaced Frontier to MacTCP, via
  9055. a TCP osax or something?  I am considering doing just such a thing,
  9056. as a way to get back into Mac programming.  I understand that osaxen
  9057. are considerably easier to write than full-blown Mac apps.  Would
  9058. anybody find such an osax useful?  Any pointers on osax and MacTCP
  9059. programming?  Thanks.
  9060.  
  9061. -David.
  9062.  
  9063.  
  9064. ____________________________________________________
  9065.  
  9066. David C. Myers
  9067. dcmyers@access.digex.net
  9068. =========================================================================
  9069. Date:         Fri, 20 May 1994 08:38:01 -0500
  9070. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9071. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9072. From:         Fred Terry <pfterry@LKS.CSI.COM>
  9073. Subject:      Re: Director/MIDI/AppleScript etc summary
  9074. In-Reply-To:  Your message of "Fri, 20 May 94 00:32:01 CDT"
  9075.  
  9076. Hi Jonathan,
  9077.  
  9078. >I recently posted three related (at least in my mind) questions on three
  9079. >separate lists, including this one, having to do with using MIDI over a
  9080. >network, using Director with MIDI, and AppleScript and MIDI.  I
  9081. >concatenated the replies into a single text file (about 27k) with almost no
  9082. >editing.  I'd post it to the list, but I don't want to burden anyone with a
  9083. >27k mailing they aren't interested in.  So ... anyone who wants a copy,
  9084. >just send me email with the *exact* subject line: "send text" (no quotes)
  9085. >and _nothing_ in the body of the message.  After a few days, I'll send it
  9086. >out.
  9087. >
  9088. >Is this a good way to deal with this?  Should I post it if I get a
  9089. >substantial number of replies?  How many is substantial??
  9090.  
  9091. Thanks for collecting and concatenating the replies. If you get a substantial
  9092. number of requests, we can put it on the MacScripting ftp site at
  9093. gaea.kgs.ukans.edu. If not, I would still like to get a copy to place there.
  9094.  
  9095. Thanks.
  9096.  
  9097. pf
  9098.  
  9099.  
  9100. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  9101. Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
  9102. =========================================================================
  9103. Date:         Fri, 20 May 1994 07:54:07 -0700
  9104. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9105. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9106. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  9107. Subject:      QuarkXPress:  selecting...how?
  9108.  
  9109. Given this starting condition:
  9110.    There is an insertion point established, and an object specifier for
  9111. some later point in the document is known.
  9112.  
  9113. Problem:
  9114.    Select the text from the insertion point thru the text implied by the
  9115. specifier.
  9116.  
  9117. Sorry...I have to ask, since I can't try it myself (no XPress).  [QuicKeys
  9118. isn't an option in this case since the physical location of the second
  9119. object varies.]
  9120.  
  9121.    Thanks.  --John
  9122.  
  9123. --
  9124. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  9125. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  9126. =========================================================================
  9127. Date:         Fri, 20 May 1994 14:13:55 -0500
  9128. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9129. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9130. From:         Jonathan Bauer <jhbauer@PANIX.COM>
  9131. Subject:      Re: Director/MIDI/AppleScript etc summary
  9132.  
  9133. I've sent a copy of the replies to Fred Terry for posting at the ftp site
  9134. filename: MIDI/AS/Appletalk.sit  (Phew, there was more interest than I
  9135. anticipated!).  Don't know where he'll put it.
  9136.  
  9137. /jonathan
  9138.  
  9139. >>
  9140. >>Is this a good way to deal with this?  Should I post it if I get a
  9141. >>substantial number of replies?  How many is substantial??
  9142. >
  9143. >Thanks for collecting and concatenating the replies. If you get a substantial
  9144. >number of requests, we can put it on the MacScripting ftp site at
  9145. >gaea.kgs.ukans.edu. If not, I would still like to get a copy to place there.
  9146. >
  9147. >Thanks.
  9148. >
  9149. >pf
  9150. >
  9151. >
  9152. >+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  9153. >Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
  9154. =========================================================================
  9155. Date:         Fri, 20 May 1994 11:31:40 -0700
  9156. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9157. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9158. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  9159. Subject:      Re: fwd
  9160.  
  9161. >> From: Paul.L.Merchant.Jr@Dartmouth.EDU (Paul L Merchant Jr.)
  9162. >> Reply-To: Paul.Merchant@Dartmouth.EDU
  9163. >> Subject: Resources
  9164. >> To: cwarrior@netcom.com
  9165. >>
  9166. >> Does anyone have any suggestions for maintaining resources that are shared
  9167. >> among different projects?  It seems awfully primitive to have to keep a
  9168. >> different copy of these resources for each project.
  9169. >>
  9170. >> I've been using Think C to compile a resource file (sorry) and then manually
  9171. >> copying it a file to use with CodeWarrior, but this gets to be a headache.
  9172.  
  9173. Learn Rez (and DeRez, for turning ResEdit output into Rez source).  The
  9174. fact that you are compiling resources using Think Project Manager suggests
  9175. you already use Rez source (the .r files).
  9176.  
  9177. Use ToolServer, running the Rez tool, to create resource files.  That is
  9178. Rez's job.
  9179.  
  9180.    --John
  9181.  
  9182.  
  9183. --
  9184. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  9185. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  9186. =========================================================================
  9187. Date:         Fri, 20 May 1994 14:34:44 EDT
  9188. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9189. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9190. From:         Shaddar@AOL.COM
  9191. Subject:      Difference between from idle and from finder?
  9192.  
  9193. I am writing a script agent to watch a folder and sort out mail but want it
  9194. to be configurable via double-clicking it (to configure destination folder
  9195. and search prefix).  Is there any way to do this that won't require input
  9196. every time it comes out of idle, but only when I want to configure it?  I
  9197. have thought of a separate configuring script but would like to keep it as
  9198. one app.
  9199.  
  9200. Thanks!
  9201.  
  9202. ~Josh Baer~
  9203. =========================================================================
  9204. Date:         Fri, 20 May 1994 14:16:52 -0500
  9205. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9206. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9207. From:         Fred Terry <pfterry@LKS.CSI.COM>
  9208. Subject:      Re: Director/MIDI/AppleScript etc summary
  9209. In-Reply-To:  Your message of "Fri, 20 May 94 14:13:55 CDT"
  9210.  
  9211. Everyone,
  9212.  
  9213. >I've sent a copy of the replies to Fred Terry for posting at the ftp site
  9214. >filename: MIDI/AS/Appletalk.sit  (Phew, there was more interest than I
  9215. >anticipated!).  Don't know where he'll put it.
  9216. >
  9217. >/jonathan
  9218. >
  9219.  
  9220. You'll find them in
  9221.  
  9222. ftp://gaea.kgs.ukans.edu/applescript/docs/AS_and_MIDI.hqx
  9223.  
  9224. Have fun. Thanks again, Jonathan.
  9225.  
  9226. pf
  9227.  
  9228.  
  9229. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  9230. Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
  9231. =========================================================================
  9232. Date:         Fri, 20 May 1994 15:22:02 -0600
  9233. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9234. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9235. From:         "Desmond K. Mullen" <mulle009@MAROON.TC.UMN.EDU>
  9236. Subject:      Re: Difference between from idle and from finder?
  9237.  
  9238. >I am writing a script agent to watch a folder and sort out mail but want it
  9239. >to be configurable via double-clicking it (to configure destination folder
  9240. >and search prefix).  Is there any way to do this that won't require input
  9241. >every time it comes out of idle, but only when I want to configure it?  I
  9242. >have thought of a separate configuring script but would like to keep it as
  9243. >one app.
  9244. >
  9245. >Thanks!
  9246. >
  9247. >~Josh Baer~
  9248.  
  9249. Josh, here's the top of my script that fetches and sorts eemail using Eudora.
  9250. I also sometimes want stuff forwarded to another account, so I have it ask at
  9251. startup. If I want to change the setting (which I rarely do) then I quit
  9252. and restart it.
  9253.  
  9254. --------------------script---------------------
  9255. on run
  9256.  display dialog "Do you want to forward messages to the Mull0079 account?"
  9257. buttons {"Yes", "No"} default button 2
  9258. -- (the line above ("buttons...") is wrapped around from the previous line)
  9259.  set theForwarding to button returned of the result
  9260. end run
  9261.  
  9262. on idle
  9263.  if "Eudora1.4.2" is in ((list applications) as string) then
  9264.   try
  9265.    tell application "Eudora1.4.2"
  9266.     with timeout of 1200 seconds
  9267. (etc. etc.)
  9268. end idle
  9269. --------------------script---------------------
  9270.  
  9271.  
  9272. -DM
  9273.  
  9274. Desmond K. Mullen - University of Minnesota, Office of Admissions
  9275. mulle009@maroon.tc.umn.edu - 612/625-0824
  9276. =========================================================================
  9277. Date:         Fri, 20 May 1994 20:45:14 GMT
  9278. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9279. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9280. From:         "Robert K. Terra" <Robert_Terra@BROWN.EDU>
  9281. Organization: Brown University
  9282. Subject:      Deleting a non-empty folder (err -47)
  9283.  
  9284. Hi all, Me again.
  9285.  
  9286. Is it possible to delete a folder that has files/folders in it? I've tried
  9287. every possible "delete/remove/movetotrash etc" command that I can think of.
  9288. I keep getting a "File Busy" or "Error -47" (same thing) error if the
  9289. folder has something in it. I at first thought this might be because I'm
  9290. trying to delete a folder on a fileserver, but it seems to happen on my HD
  9291. also.
  9292.  
  9293. Any way around this without going into each folder then each subfolder(if
  9294. any) and deleting all the files and then backing out untill the folder that
  9295. I want to delete is finally empty?
  9296.  
  9297. Thx in advance for your help!
  9298.  
  9299. Bob
  9300. =========================================================================
  9301. Date:         Fri, 20 May 1994 13:45:23 -0700
  9302. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9303. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9304. From:         Doug Baron <userland@NETCOM.COM>
  9305. Subject:      Re: QuarkXPress:  selecting...how?
  9306.  
  9307. >Given this starting condition:
  9308. >   There is an insertion point established, and an object specifier for
  9309. >some later point in the document is known.
  9310. >
  9311. >Problem:
  9312. >   Select the text from the insertion point thru the text implied by the
  9313. >specifier.
  9314. >
  9315. >Sorry...I have to ask, since I can't try it myself (no XPress).  [QuicKeys
  9316. >isn't an option in this case since the physical location of the second
  9317. >object varies.]
  9318. >
  9319. >   Thanks.  --John
  9320. >
  9321. >--
  9322. >jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  9323. >finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  9324.  
  9325. Here's what I came up with:
  9326.  
  9327. with objectmodel, qxp, defs, document [1]
  9328.    local (box, sel, selobj = objspec (selection))
  9329.    box = get (currentBox)
  9330.    with box
  9331.       sel = get (selobj)
  9332.       set (selobj, text [sel to word [12]])
  9333.       return
  9334.  
  9335. The "selobj" local disambiguates the object reference within the "with"
  9336. statement.
  9337.  
  9338. I found that asking QXP for the selection generates an "object not found"
  9339. error if there is text selected, rather than an insertion point. Or, it
  9340. will return an invalid specifier. I'm not sure what to do about that. I'm
  9341. using 3.2 ,so it might be a problem that's been fixed in 3.3.
  9342.  
  9343. Doug
  9344. =========================================================================
  9345. Date:         Fri, 20 May 1994 17:06:11 -0400
  9346. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9347. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9348. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  9349. Subject:      Re: Deleting a non-empty folder (err -47)
  9350. In-Reply-To:  <no.id> from "Robert K. Terra" at May 20, 94 08:45:14 pm
  9351.  
  9352. --Robert K. Terra wrote:
  9353. >
  9354. >Is it possible to delete a folder that has files/folders in it? I've tried
  9355. >every possible "delete/remove/movetotrash etc" command that I can think of.
  9356. >I keep getting a "File Busy" or "Error -47" (same thing) error if the
  9357. >folder has something in it. I at first thought this might be because I'm
  9358. >trying to delete a folder on a fileserver, but it seems to happen on my HD
  9359. >also.
  9360.  
  9361.     Well, assuming you are using the Scriptable Finder to do the
  9362. deleting, all you need to do is say:
  9363.  
  9364. tell application "Finder"
  9365.    delete folder "My HD:My Folder"
  9366.    empty trash
  9367. end tell
  9368.  
  9369.     You have to use the empty trash command because the Scsriptable
  9370. Finder won't just delete a folder. It moves the folder to the trash. If
  9371. you were to use the command delete file "My HD:My Folder: My File" the
  9372. Scriptable Finder will delete the file without using the trash.
  9373.  
  9374. -Hades
  9375. =========================================================================
  9376. Date:         Fri, 20 May 1994 21:55:11 GMT
  9377. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9378. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9379. From:         "Robert K. Terra" <Robert_Terra@BROWN.EDU>
  9380. Organization: Brown University
  9381. Subject:      Re: Deleting a non-empty folder (err -47)
  9382.  
  9383. In article <GRAND%LISTS.APPLESCRIPT.1395@brownvm.brown.edu>, "Brian V.
  9384. Hughes" <hades@COOS.DARTMOUTH.EDU> wrote:
  9385.  
  9386. > --Robert K. Terra wrote:
  9387. > >
  9388. > >Is it possible to delete a folder that has files/folders in it? I've tried
  9389. > >every possible "delete/remove/movetotrash etc" command that I can think of.
  9390. > >I keep getting a "File Busy" or "Error -47" (same thing) error if the
  9391. > >folder has something in it. I at first thought this might be because I'm
  9392. > >trying to delete a folder on a fileserver, but it seems to happen on my HD
  9393. > >also.
  9394. >
  9395. >     Well, assuming you are using the Scriptable Finder to do the
  9396. > deleting, all you need to do is say:
  9397. >
  9398. > tell application "Finder"
  9399. >    delete folder "My HD:My Folder"
  9400. >    empty trash
  9401. > end tell
  9402. >
  9403. >     You have to use the empty trash command because the Scsriptable
  9404. > Finder won't just delete a folder. It moves the folder to the trash. If
  9405. > you were to use the command delete file "My HD:My Folder: My File" the
  9406. > Scriptable Finder will delete the file without using the trash.
  9407. >
  9408. > -Hades
  9409.  
  9410. Sorry to mention, I'm still using AS 1.0 & no Scriptable Finder.
  9411. Thx bob
  9412. =========================================================================
  9413. Date:         Fri, 20 May 1994 20:21:56 -0800
  9414. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9415. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9416. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  9417. Subject:      Re: Sending Eudora Message & a question!
  9418.  
  9419. >Oh - and a question. Why is it that running a script with osa Menu halts
  9420. >everything else, making it impossible to switch applications while the
  9421. >script is running?
  9422. >
  9423.         Shouldn't do that at all!  OSA Menu just sends the script to the
  9424. application you choose it in, things happen just fine in the background if
  9425. neccessary.  Do make sure that you have OSA Menu 1.0.1!
  9426.  
  9427. Leonard
  9428.  
  9429. -----------------------------------------------------------------------------
  9430. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  9431. Director of Advanced Technology         AppleLink:      MACgician
  9432. Aladdin Systems, Inc.                   GEnie:          MACgician
  9433. =========================================================================
  9434. Date:         Sat, 21 May 1994 14:18:09 +0100
  9435. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9436. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9437. From:         Christian Orellana <muscabo@DFI.AAU.DK>
  9438. Subject:      Re: Sending Eudora Message & a question!
  9439.  
  9440. >>Oh - and a question. Why is it that running a script with osa Menu halts
  9441. >>everything else, making it impossible to switch applications while the
  9442. >>script is running?
  9443. >>
  9444. >        Shouldn't do that at all!  OSA Menu just sends the script to the
  9445. >application you choose it in, things happen just fine in the background if
  9446. >neccessary.  Do make sure that you have OSA Menu 1.0.1!
  9447. >
  9448. >Leonard
  9449. >
  9450.  
  9451. Hi!
  9452. I do have OSA Menu 1.0.1. The script causing the problem is very simple:
  9453.  
  9454. tell application "Eudora 2.0.2"
  9455.         try
  9456.                 with timeout of 600 seconds
  9457.                         connect with Send
  9458.                 end timeout
  9459.         on error
  9460.                 return
  9461.         end try
  9462. end tell
  9463.  
  9464. When running this script by double-clicking it, or through NowMenus, the
  9465. script tells Eudora to check for mail, and all happens in the background,
  9466. without problems - I hardly notice anything is going on.
  9467. Where as running it from OSA Menu causes everything to halt while Eudora is
  9468. connecting, checking for mail, and sending, making it impossible to switch
  9469. applications while the process is going on. (I use Eudora over a serial
  9470. connection).
  9471. If "activate application "Eudora 2.0.2" is put as the first line of the
  9472. script things work fine as well, but not in the background!
  9473. Is this a bug in Eudora, OSA Menu, or the script, and is there a workaround?
  9474. Any help appreciated.
  9475.  
  9476.  
  9477.  
  9478. Best regards -
  9479. Christian A.Borlund Orellana
  9480. Institute of Physics and Astronomy Aarhus University.
  9481. ______________________________________________________
  9482. Internet e-mail:        muscabo@dfi.aau.dk
  9483. voice:                  +45-86102798
  9484. mail:                   Dr.Margrethesvej 11,3.th.
  9485.                         8200 Aarhus N, DENMARK.
  9486. ______________________________________________________
  9487. =========================================================================
  9488. Date:         Sat, 21 May 1994 15:17:42 -0400
  9489. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9490. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9491. From:         "Lavallee, Marc" <r27764@ER.UQAM.CA>
  9492. Subject:      Hypercard 2.2 OSA scripting
  9493.  
  9494. Maybe most of you will not learn anything new from my discovery, but here
  9495. it is anyway, one the best way to use the Quickey's OSAX with Hypercard 2.2.
  9496. This trick is from the Applelink "AppleScript Scripting Discussion" forum.
  9497.  
  9498. --------------------------------------------------------------------------
  9499. One way I have found to execute a Quickeys script in HyperCard is to write
  9500. Quickey script in the button editor, selecting Quickeys as the language. Then
  9501. in the stack script, put the following handler:
  9502.  
  9503. on mouseUp
  9504.   put the target into t
  9505.   if the ScriptingLanguage of t is "QuicKeys"
  9506.   then do script of t as Quickeys
  9507. end mouseUp
  9508.  
  9509. clicking on the button will then execute the quickey script, as long as the
  9510. "mouseUp" message doesn't get stoopped by another handler in the card or
  9511. background script. The "pass mouseUp" command  fixes that.
  9512. --------------------------------------------------------------------------
  9513.  
  9514. The important thing to consider here is
  9515. "do <container> as <scripting langage>"
  9516. The scripting popup menu is then useless, as long as you know the langage of
  9517. your scripts. So I prefer to write my scripts in text fields.
  9518.  
  9519. BTW, to switch to another application I'm using the Hypertalk "domenu"
  9520. command, since the Quickey "Menu" command never worked for that simple task.
  9521.  
  9522.  Marc Lavallee
  9523.  r27764@er.uqam.ca
  9524. =========================================================================
  9525. Date:         Sun, 22 May 1994 04:32:29 -0400
  9526. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9527. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9528. From:         Chris Brannon <cbrannon+@PITT.EDU>
  9529. Subject:      Renaming files
  9530.  
  9531. Has anyone out there written a nifty little script to rename files, perhaps
  9532. allowing wildcards or grepping?  I'd like to see what you've done.
  9533.  
  9534. Thanks,
  9535. Chris
  9536.  
  9537.  
  9538. Regards,...Chris
  9539. +--------------------------------------------------------------------------
  9540. Christopher B. Brannon                             University of Pittsburgh
  9541. cbrannon+@pitt.edu        THE*TRUTH*IS*OUT*THERE          Political Science
  9542. =========================================================================
  9543. Date:         Sun, 22 May 1994 09:06:41 -0800
  9544. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9545. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9546. From:         Pedro N Safier <pns@UCLINK2.BERKELEY.EDU>
  9547. Subject:      How to open MacPPP?
  9548.  
  9549. Hi,
  9550.  
  9551. I am trying to make MacPPP to open a modem connection without success. Has
  9552. anybody done this before?
  9553.  
  9554. On a more general level: how can one script a control panel?
  9555.  
  9556.  
  9557. Cheers,
  9558.  
  9559. Pedro
  9560. =========================================================================
  9561. Date:         Sun, 22 May 1994 13:06:29 -0700
  9562. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9563. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9564. From:         Jon Pugh <jonpugh@NETCOM.COM>
  9565. Subject:      File Sharing Control?
  9566.  
  9567. Is there a way to turn File Sharing on & off from a script?  I've pawed
  9568. through my collection of osaxen and can't seem to find one that does this.
  9569. I suppose I can write my own, but...
  9570.  
  9571. Jon
  9572. =========================================================================
  9573. Date:         Sun, 22 May 1994 16:13:01 -0400
  9574. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9575. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9576. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  9577. Subject:      Re: File Sharing Control?
  9578. In-Reply-To:  <no.id> from "Jon Pugh" at May 22, 94 01:06:29 pm
  9579.  
  9580. --Jon Pugh wrote:
  9581. >
  9582. >Is there a way to turn File Sharing on & off from a script?  I've pawed
  9583. >through my collection of osaxen and can't seem to find one that does this.
  9584.  
  9585.     Well, the only way that I've been able to find thus far is caling a
  9586. QuicKeys shortcut via QuicKeys Toolbox. It would be an extremely simple
  9587. "play by name" call.
  9588.  
  9589. >I suppose I can write my own, but...
  9590.  
  9591.     Hey, sounds like a great "addition" to Jon's Commands. ;->
  9592.  
  9593. -Hades
  9594. =========================================================================
  9595. Date:         Sun, 22 May 1994 14:22:47 -0700
  9596. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9597. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9598. From:         Mike Cohen <isis@NETCOM.COM>
  9599. Subject:      Re: File Sharing Control?
  9600. In-Reply-To:  <199405222030.NAA25626@mail2.netcom.com> from "Jon Pugh" at May
  9601.               22, 94 01:06:29 pm
  9602.  
  9603. >
  9604. > Is there a way to turn File Sharing on & off from a script?  I've pawed
  9605. > through my collection of osaxen and can't seem to find one that does this.
  9606. > I suppose I can write my own, but...
  9607. >
  9608. It can be done with a QuicKeys "System 7 Special" macro. Don't you have an
  9609. osax that will play a quickey sequence?
  9610.  
  9611.  
  9612. --
  9613. Mike Cohen           | ISIS International
  9614. (818) 788-4747 Voice | isis@netcom.com           | ALink: D6734
  9615. (818) 501-0653 Fax   | NewtonMail, eWorld: MikeC | AOL: MikeC20
  9616. Home Page: file://netcom3.netcom.com/pub/isis/home.html
  9617. =========================================================================
  9618. Date:         Sun, 22 May 1994 15:07:07 -0700
  9619. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9620. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9621. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  9622. Subject:      Re: How to open MacPPP?
  9623.  
  9624. >Hi,
  9625. >
  9626. >I am trying to make MacPPP to open a modem connection without success. Has
  9627. >anybody done this before?
  9628.  
  9629. The easy way is to use this Scripting Addition (which ignores the visible
  9630. Control Panel):
  9631.  
  9632. ftp://gaea.kgs.ukans.edu:applescript/osaxen/MacPPPControl1.1.sit.hqx
  9633.  
  9634. >On a more general level: how can one script a control panel?
  9635.  
  9636. One can't, until control panels are written to be scripted.
  9637.  
  9638.  
  9639. --
  9640. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  9641. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  9642. =========================================================================
  9643. Date:         Mon, 23 May 1994 08:33:31 -0400
  9644. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9645. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9646. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  9647. Subject:      Re: File Sharing Control?
  9648. In-Reply-To:  <no.id> from "Mike Cohen" at May 22, 94 02:22:47 pm
  9649.  
  9650. --Mike Cohen wrote:
  9651. >
  9652. >It can be done with a QuicKeys "System 7 Special" macro. Don't you have an
  9653. >osax that will play a quickey sequence?
  9654.  
  9655.     If you have QuicKeys 3.0 (which is the only one that can be
  9656. controlled by AppleEvents) you don't need another osax. QK comes with a
  9657. faceless background app called QuicKeys Toolbox that you can send
  9658. AppleScript commands to to execute QuicKeys shortcuts. Something like:
  9659.  
  9660. tell application "QuicKeys Toolbox"
  9661.    play by name "FileSharing Off"
  9662. end tell
  9663.  
  9664. -Hades
  9665. =========================================================================
  9666. Date:         Mon, 23 May 1994 11:36:27 -0400
  9667. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9668. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9669. From:         "George R. Brown" <gbrown@PARTECH.COM>
  9670. Subject:      Opening a literal file with Script Tools 1.3
  9671.  
  9672. Is there a way to coerce a literal file name to what ever the result of
  9673. "choose file" returns?  Open file appears to want the type resulting from a
  9674. choose file (or equivalent).  Heres the example from Script Tools:
  9675.     set paramFile to choose file with prompt "Select params.good ..." of
  9676. type "TEXT"
  9677.     set refNum to open file paramFile for reading
  9678. I wanted to do:
  9679.     set paramFileName to ":System Folder:Preferences:Send Attach Preferences"
  9680.     set paramFile to open file paramFileName for reading
  9681. Thanks,
  9682.  
  9683.  - gb (george@partech.com)
  9684. =========================================================================
  9685. Date:         Mon, 23 May 1994 11:47:19 -0700
  9686. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9687. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9688. From:         Rob Dewhirst <robd@FARALLON.COM>
  9689. Subject:      Creating a resource?
  9690.  
  9691. Is there an easy way to create an empty data resource in a file?  With the GTQ
  9692. scripting library I can move/copy resources, but I can't seem to find an easy
  9693. way to create them.
  9694. =========================================================================
  9695. Date:         Mon, 23 May 1994 11:12:09 -0800
  9696. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9697. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9698. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  9699. Subject:      telling an osax?
  9700.  
  9701. Summary: How do I direct or tell applescript to direct a script statement
  9702. to a specific osax?
  9703.  
  9704.  
  9705. The following AppleScript is in a HyperCard 2.2 button. When I press the
  9706. button I get the following error messages (I extracted them with an on
  9707. error handler that is not shown).
  9708.  
  9709. Error Message = Some parameter is missing for <<event WILDREAD>>.
  9710. Error Number = -1701
  9711.  
  9712. ----------------
  9713. on mouseup
  9714.         ReadTextFile()
  9715. end mouseup
  9716.  
  9717. on ReadTextFile()
  9718.         set thedata to ""
  9719.  
  9720.         set fspec to (choose file of type {"TEXT"})
  9721.         set fref to open for access fspec
  9722. -- it gets this far no problem, errors generated by next line
  9723.         set thedata to read fref --as "TEXT"
  9724.         close access fref
  9725.  
  9726.         return (thedata)
  9727. end ReadTextFile
  9728. ----------------
  9729.  
  9730. It is my conjecture (please correct me if I am mistaken) that the read fref
  9731. command is being interpreted by HyperCard instead of the read/write osax in
  9732. the scripting additions folder. I would like my AppleScript scripts to be
  9733. transportable so I do not want to use the HyperCard read command, I want to
  9734. use the osax. How do I direct or tell applescript to direct the statement
  9735. to the osax? Is that the problem?
  9736.  
  9737. Kee Nethery
  9738.  
  9739. _________________________________________________________________
  9740. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  9741. =========================================================================
  9742. Date:         Mon, 23 May 1994 12:42:37 -0700
  9743. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9744. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9745. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  9746. Subject:      Re: Opening a literal file with Script Tools 1.3
  9747.  
  9748. At 11:36 5/23/94 -0400, George R. Brown wrote:
  9749.  
  9750. >Is there a way to coerce a literal file name to what ever the result of
  9751. >"choose file" returns?  Open file appears to want the type resulting from a
  9752. >choose file (or equivalent).  Heres the example from Script Tools:
  9753. >    set paramFile to choose file with prompt "Select params.good ..." of
  9754. >type "TEXT"
  9755. >    set refNum to open file paramFile for reading
  9756. >I wanted to do:
  9757. >    set paramFileName to ":System Folder:Preferences:Send Attach Preferences"
  9758. >    set paramFile to open file paramFileName for reading
  9759.  
  9760. try something like
  9761. set paramFileAlias to alias (((path to preferences folder) as string) &
  9762. "Send Attach Preferences")
  9763. set paramFile to open paramFileAlias
  9764.  
  9765. The above will use the Preferences folder in the System Folder used for
  9766. starting up your Mac, which appears to be what you want.  The path
  9767.     ":System Folder:Preferences:Send Attach Preferences"
  9768. begins at whatever the current directory is for whatever application's
  9769. context is being used when the script executes, and looks for System Folder
  9770. there.  Probably not what you want.
  9771.  
  9772.    --John
  9773.  
  9774. --
  9775. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  9776. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  9777. =========================================================================
  9778. Date:         Mon, 23 May 1994 13:02:58 -0700
  9779. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9780. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9781. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  9782. Subject:      Re: telling an osax?
  9783.  
  9784. >Summary: How do I direct or tell applescript to direct a script statement
  9785. >to a specific osax?
  9786. >
  9787. >
  9788. >The following AppleScript is in a HyperCard 2.2 button. When I press the
  9789. >button I get the following error messages (I extracted them with an on
  9790. >error handler that is not shown).
  9791. >
  9792. >Error Message = Some parameter is missing for <<event WILDREAD>>.
  9793. >Error Number = -1701
  9794. >
  9795. >----------------
  9796. >on mouseup
  9797. >        ReadTextFile()
  9798. >end mouseup
  9799. >
  9800. >on ReadTextFile()
  9801. >        set thedata to ""
  9802. >
  9803. >        set fspec to (choose file of type {"TEXT"})
  9804. >        set fref to open for access fspec
  9805. >-- it gets this far no problem, errors generated by next line
  9806. >        set thedata to read fref --as "TEXT"
  9807. >        close access fref
  9808. >
  9809. >        return (thedata)
  9810. >end ReadTextFile
  9811. >----------------
  9812. >
  9813. >It is my conjecture (please correct me if I am mistaken) that the read fref
  9814. >command is being interpreted by HyperCard instead of the read/write osax in
  9815. >the scripting additions folder. I would like my AppleScript scripts to be
  9816. >transportable so I do not want to use the HyperCard read command, I want to
  9817. >use the osax. How do I direct or tell applescript to direct the statement
  9818. >to the osax? Is that the problem?
  9819.  
  9820. Your conjecture seems correct to me.  I notice that I have the read/write
  9821. osax sitting in a folder named "Scripting Additions (broken)".  I think
  9822. that was a Power Macintosh issue, but I'm not sure at this point.
  9823.  
  9824. That aside, I would first try making a copy of the read/write osax, and
  9825. editing the 'aete' resource in the copy to give the read command a
  9826. different name.  Then adjust your Scripting Additions folder so that only
  9827. the altered copy of the osax is there, and restart your Mac (or at the very
  9828. least quit and restart HyperCard).
  9829.  
  9830. If that works for you, please let us know.  If that is the case, the naming
  9831. of Scripting Addition commands to avoid collisions is even harder than it
  9832. seemed before.
  9833.  
  9834.    (Your other scripts which use the read/write osax will adjust
  9835. themselves, except for the ones you saved as text for some reason.)
  9836.  
  9837. Meanwhile, Jon may well have a less drastic way out.  [Putting a call using
  9838. the generic event syntax inside a tell application "SomeApp" block, where
  9839. "SomeApp" is known to be running but not support the event MIGHT do the
  9840. trick, since osaxen get control when an event isn't otherwise handled.
  9841. "Finder" is a possible "SomeApp".]
  9842.  
  9843.    --John
  9844.  
  9845. --
  9846. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  9847. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  9848. =========================================================================
  9849. Date:         Mon, 23 May 1994 13:27:00 -0800
  9850. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9851. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9852. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  9853. Subject:      Re2: telling an osax?
  9854.  
  9855. John, Thank you for the reply:
  9856.  
  9857. >That aside, I would first try making a copy of the read/write osax, and
  9858. >editing the 'aete' resource in the copy to give the read command a
  9859. >different name.  Then adjust your Scripting Additions folder so that only
  9860. >the altered copy of the osax is there, and restart your Mac (or at the very
  9861. >least quit and restart HyperCard).
  9862.  
  9863. I am trying to build a script for others to use. I need it to be as generic
  9864. as possible. For that reason I do not wish to alter the standard osax aete
  9865. resource and change it from "read" to something else (such as "readMod"). I
  9866. envision my scripts being used on other machines and I don't want to
  9867. coordinate who has the altered osax nor do I want to deal with what will
  9868. happen when someone swaps out the modified read/write osax for a newer
  9869. version sometime in the future.
  9870.  
  9871. If need be, I'll use the standard HyperCard read file commands rather than
  9872. alter the standard osax. But, I definately appreciate your answer. Under
  9873. different circumstances, I'd give it a try.
  9874.  
  9875. Still wondering, is there any way to "tell" an osax to do something?
  9876.  
  9877. Kee Nethery
  9878.  
  9879.  
  9880.  
  9881. _________________________________________________________________
  9882. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  9883. =========================================================================
  9884. Date:         Tue, 24 May 1994 10:35:43 +1200
  9885. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9886. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9887. From:         Michael Norris <michael.norris@STONEBOW.OTAGO.AC.NZ>
  9888. Subject:      FileMaker Pro & AppleScript Bug?
  9889.  
  9890. HELP!
  9891.  
  9892. I've been having a problem with scripting FileMaker Pro whenever I do the
  9893. following:
  9894.  
  9895. tell application "FileMaker Pro"
  9896.         do script "Import Text"
  9897.         set b to number of record in database "DB"
  9898. end tell
  9899.  
  9900. It runs the script OK but then sits in a repeat loop not doing anything,
  9901. and according to the event log, "FileMaker Pro got an error: User canceled
  9902. out of wait loop for reply or receipt." which seems to have been brought
  9903. about by the SFGet dialog box on the screen. Is there anyway around this???
  9904.  
  9905. Please HELP!
  9906.  
  9907. Cheers,
  9908.  
  9909. Michael Norris,
  9910. CAL Consultant,
  9911. University of Otago,
  9912. PO Box 56,
  9913. Dunedin,
  9914. New Zealand.
  9915. ---------------------
  9916. Ph:(03) 479-7705
  9917. E-Mail: michael.norris@stonebow.otago.ac.nz
  9918. =========================================================================
  9919. Date:         Mon, 23 May 1994 19:57:05 EDT
  9920. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9921. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9922. From:         Shaddar@AOL.COM
  9923. Subject:      Extensions Liscensing?
  9924.  
  9925. I am a high school student working on an Applescript project for my AP
  9926. Computers class as an end of the year advanced assignment.  I would like to
  9927. write some script to automate some of the routine maintenence of the lab,
  9928. thereby learning more Applescript and helping out my teacher at the same
  9929. time.
  9930.  
  9931. The problem is that he can't run my script unless he has the scripting
  9932. extensions (Apple Event Manager and Applescript Extensions) installed on all
  9933. the hard drives (if the scripts work the way I understand them).  The school
  9934. is not about to purchase 30 copies of Applescript for my final project so I
  9935. was wondering if I am legally allowed to copy the extensions onto the
  9936. school's computers.  (not the software for scripting, just the two
  9937. extensions).
  9938.  
  9939. If not, is there any way to get Apple to let me do since it's educational and
  9940. it's not allowing them to do anything new, just run scripts I write at home?
  9941.  (Also, since they are coming out with a scriptable finder which will be
  9942. available sometime soon anyway?).
  9943.  
  9944. thanks  ;)
  9945.  
  9946. ~Josh~
  9947. =========================================================================
  9948. Date:         Mon, 23 May 1994 17:35:09 -0800
  9949. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9950. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9951. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  9952. Subject:      Re: Extensions Licensing?
  9953.  
  9954. >I am a high school student working on an Applescript project for my AP
  9955. >Computers class as an end of the year advanced assignment.  I would like to
  9956. >write some script to automate some of the routine maintenence of the lab,
  9957. >thereby learning more Applescript and helping out my teacher at the same
  9958. >time.
  9959.  
  9960. Good idea.
  9961.  
  9962. >The problem is that he can't run my script unless he has the scripting
  9963. >extensions (Apple Event Manager and Applescript Extensions) installed on all
  9964. >the hard drives (if the scripts work the way I understand them).  The school
  9965. >is not about to purchase 30 copies of Applescript for my final project so I
  9966. >was wondering if I am legally allowed to copy the extensions onto the
  9967. >school's computers.  (not the software for scripting, just the two
  9968. >extensions).
  9969.  
  9970. Read the license agreement for AppleScript. The License that came with my
  9971. copy of AppleScript says:
  9972.  
  9973. "This License allows you to use the Apple Software and fonts on a single
  9974. computer, to make one copy of the entire Apple Software and fonts in
  9975. machine-readable form for backup purposes only, to copy or have copied for
  9976. you an unlimited number of copies of the Apple Event Manager, AppleScript
  9977. System Extension File, Scripting Additions, AppleScript Dialects, and
  9978. FrontMost(tm)* Runtime Code, as defined below, (collectively, the
  9979. "Distributable Software") and to distribute such copies of the
  9980. Distributable Software incorporated in applications developed by you."
  9981.  
  9982. There is more that talks about the requirements for the licensing agreement
  9983. for your software and what needs to appear in your about box. Sounds like
  9984. as long as you follow their requirements, there is no problem putting the
  9985. "Distributable Software" on the other computers.
  9986.  
  9987. Weasel Clause: I am not a lawyer, I have never been a lawyer, I don't think
  9988. I'll ever be a lawyer, and thus, you should not take my interpretation of
  9989. the Apple AppleScript software license as truth. You are on your own. Read
  9990. the license and decide for yourself.
  9991.  
  9992. >If not, is there any way to get Apple to let me do since it's educational and
  9993. >it's not allowing them to do anything new, just run scripts I write at home?
  9994. > (Also, since they are coming out with a scriptable finder which will be
  9995. >available sometime soon anyway?).
  9996.  
  9997. Which will most likely cost bucks for each computer in the school.
  9998.  
  9999. Kee Nethery
  10000.  
  10001. _________________________________________________________________
  10002. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  10003. =========================================================================
  10004. Date:         Mon, 23 May 1994 22:08:10 EDT
  10005. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10006. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10007. From:         Shaddar@AOL.COM
  10008. Subject:      Re: Extensions Licensing?
  10009.  
  10010. >>I am a high school student working on an Applescript project for my AP
  10011. >>Computers class as an end of the year advanced assignment.  I would like to
  10012. >>write some script to automate some of the routine maintenence of the lab,
  10013. >>thereby learning more Applescript and helping out my teacher at the same
  10014. >>time.
  10015.  
  10016. >Good idea.
  10017.  
  10018. >>The problem is that he can't run my script unless he has the scripting
  10019. >>extensions (Apple Event Manager and Applescript Extensions) installed on
  10020. all
  10021. >>the hard drives (if the scripts work the way I understand them).  The
  10022. school
  10023. >>is not about to purchase 30 copies of Applescript for my final project so I
  10024. >>was wondering if I am legally allowed to copy the extensions onto the
  10025. >>school's computers.  (not the software for scripting, just the two
  10026. >>extensions).
  10027.  
  10028. >Read the license agreement for AppleScript. The License that came with my
  10029. >copy of AppleScript says:
  10030.  
  10031. >"This License allows you to use the Apple Software and fonts on a single
  10032. >computer, to make one copy of the entire Apple Software and fonts in
  10033. >machine-readable form for backup purposes only, to copy or have copied for
  10034. >you an unlimited number of copies of the Apple Event Manager, AppleScript
  10035. >System Extension File, Scripting Additions, AppleScript Dialects, and
  10036. >FrontMost(tm)* Runtime Code, as defined below, (collectively, the
  10037. >"Distributable Software") and to distribute such copies of the
  10038. >Distributable Software incorporated in applications developed by you."
  10039.  
  10040. >There is more that talks about the requirements for the licensing agreement
  10041. >for your software and what needs to appear in your about box. Sounds like
  10042. >as long as you follow their requirements, there is no problem putting the
  10043. >"Distributable Software" on the other computers.
  10044.  
  10045. >Weasel Clause: I am not a lawyer, I have never been a lawyer, I don't think
  10046. >I'll ever be a lawyer, and thus, you should not take my interpretation of
  10047. >the Apple AppleScript software license as truth. You are on your own. Read
  10048. >the license and decide for yourself.
  10049.  
  10050. >>If not, is there any way to get Apple to let me do since it's educational
  10051. and
  10052. >>it's not allowing them to do anything new, just run scripts I write at
  10053. home?
  10054. >> (Also, since they are coming out with a scriptable finder which will be
  10055. >>available sometime soon anyway?).
  10056.  
  10057. >Which will most likely cost bucks for each computer in the school.
  10058.  
  10059. Thanks Alot!
  10060.  
  10061. But one question... was that the big kit (developers) or just the run-time
  10062. kit?  I have the run time kit and am afraid that it might not be the same.  I
  10063. will try to check but I dont' think I have the original packaging.
  10064.  
  10065. Thanks Again!  ;)
  10066.  
  10067. ~Josh~
  10068. =========================================================================
  10069. Date:         Mon, 23 May 1994 22:23:21 -0400
  10070. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10071. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10072. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  10073. Subject:      Re: FileMaker Pro & AppleScript Bug?
  10074. In-Reply-To:  <no.id> from "Michael Norris" at May 24, 94 10:35:43 am
  10075.  
  10076. --Michael Norris wrote:
  10077. >
  10078. >I've been having a problem with scripting FileMaker Pro whenever I do the
  10079. >following:
  10080. >
  10081. >tell application "FileMaker Pro"
  10082. >        do script "Import Text"
  10083. >        set b to number of record in database "DB"
  10084. >end tell
  10085. >
  10086. >It runs the script OK but then sits in a repeat loop not doing anything,
  10087. >and according to the event log, "FileMaker Pro got an error: User canceled
  10088. >out of wait loop for reply or receipt." which seems to have been brought
  10089. >about by the SFGet dialog box on the screen. Is there anyway around this???
  10090.  
  10091.     Well, can you tell us what the commands in the Import Text script
  10092. are. For some reason your script is putting up a dialog box. If you can
  10093. stop the script from putting up this dialog box then AppleScript will be
  10094. able to complete it's script.
  10095.     Also, when making AppleScript calls to FM Pro, it is always a good
  10096. idea to wrap the commands in a "with timout..." control statement. This
  10097. will prevent AppleScript from timing out on the event calls while it is
  10098. waiting for a continue event callback from FM Pro.
  10099.  
  10100. -Hades
  10101. =========================================================================
  10102. Date:         Tue, 24 May 1994 14:55:19 +1200
  10103. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10104. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10105. From:         Michael Norris <michael.norris@STONEBOW.OTAGO.AC.NZ>
  10106. Subject:      Re: FileMaker Pro & AppleScript Bug?
  10107.  
  10108. >>I've been having a problem with scripting FileMaker Pro whenever I do the
  10109. >>following:
  10110. >>
  10111. >>tell application "FileMaker Pro"
  10112. >>        do script "Import Text"
  10113. >>        set b to number of record in database "DB"
  10114. >>end tell
  10115. >>
  10116. >>It runs the script OK but then sits in a repeat loop not doing anything,
  10117. >>and according to the event log, "FileMaker Pro got an error: User canceled
  10118. >>out of wait loop for reply or receipt." which seems to have been brought
  10119. >>about by the SFGet dialog box on the screen. Is there anyway around this???
  10120. >
  10121. >    Well, can you tell us what the commands in the Import Text script
  10122. >are. For some reason your script is putting up a dialog box. If you can
  10123. >stop the script from putting up this dialog box then AppleScript will be
  10124. >able to complete it's script.
  10125.  
  10126. The whole idea of the script is to let the user choose which file they
  10127. want!! The thing is, when the user does choose it, nothing happens. FMaker
  10128. doesn't seem to return the required reply to AppleScript. You're right, it
  10129. does work with the 'specify file' option turned off, but I shouldn't have
  10130. to do that.
  10131.  
  10132. Cheers,
  10133.  
  10134.  
  10135.  
  10136. Michael Norris,
  10137. CAL Consultant,
  10138. University of Otago,
  10139. PO Box 56,
  10140. Dunedin,
  10141. New Zealand.
  10142. ---------------------
  10143. Ph:(03) 479-7705
  10144. E-Mail: michael.norris@stonebow.otago.ac.nz
  10145. =========================================================================
  10146. Date:         Tue, 24 May 1994 01:17:23 -0700
  10147. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10148. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10149. From:         Rob Dewhirst <robd@FARALLON.COM>
  10150. Subject:      MountVolume OSAX
  10151.  
  10152. I have this in my scripting additions folder, and I can't seem to find its
  10153. origin.  Is is part of the GTQ library? If so, it is not documented.
  10154.  
  10155. In any case, how do you mount a volume without a zone? Giving a zone name of ""
  10156. does not work.
  10157. =========================================================================
  10158. Date:         Tue, 24 May 1994 01:09:40 -0800
  10159. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10160. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10161. From:         Jon Pugh <jonpugh@NETCOM.COM>
  10162. Subject:      Re: telling an osax?
  10163.  
  10164. >It is my conjecture (please correct me if I am mistaken) that the read fref
  10165. >command is being interpreted by HyperCard instead of the read/write osax in
  10166. >the scripting additions folder. I would like my AppleScript scripts to be
  10167. >transportable so I do not want to use the HyperCard read command, I want to
  10168. >use the osax. How do I direct or tell applescript to direct the statement
  10169. >to the osax? Is that the problem?
  10170.  
  10171. Yes, you have successfully identified the problem.  John's solution though,
  10172. is a bit drastic.  Don't do it.  There are better solutions.
  10173.  
  10174. First off though, you need to understand that AppleScript cares immensely
  10175. about context.  It is essentially impossible to write an AppleScript which
  10176. will execute the same in a script application and in Hypercard because
  10177. every script in Hypercard has "tell app Hypercard" wrapped around it.  This
  10178. means that all AppleScripts use Hypercard's terminology by default.
  10179.  
  10180. This means that you need to specify a new target.  It can be as simple as
  10181. "tell app Finder" or using HyperTalk to run a script application or
  10182. compiled script instead.
  10183.  
  10184. You are probably now thinking that Hypercard is not the ideal place to
  10185. prototype your scripts.  There is some truth to this.  What you might want
  10186. to do instead is to create a stack with fields and write a script which
  10187. gets the text from the field and compiles and runs that.  This would
  10188. essentially be the script database that I think you are trying to get.
  10189. Storing the scripts in buttons makes them Hypercard AppleScripts, which
  10190. doesn't appear to be what you want.
  10191.  
  10192. There is no way to directly reference an osax.  Typically you merely refer
  10193. out of the current tell block with something like "my fooEvent" or
  10194. "fooEvent of me" but in this case, that should still be Hypercard.  In the
  10195. case of a script application it would be the nonscriptable application and
  10196. thus an osax.
  10197.  
  10198. Hmm, an idea may be to use "tell AppleScript".  I just tried a simple thing
  10199. with beep and it seemed to work, but I don't know if it really ran the beep
  10200. osax or called the beep command.  Try it with read and see.  That should
  10201. work everywhere.
  10202.  
  10203. Jon
  10204. =========================================================================
  10205. Date:         Tue, 24 May 1994 06:57:00 EST
  10206. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10207. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10208. From:         "I.DreimillerM@OEmail.VitroNLON"
  10209.               <I+pDreimillerM+aOEmail+pVitroNLON%Vitro_NLON@MCIMAIL.COM>
  10210. Subject:      StuffIt Deluxe script ??s
  10211.  
  10212. From: I.DreimillerM on Tue, May 24, 1994 7:55 AM
  10213. Subject: StuffIt Deluxe script ??s
  10214. To: MacScripting
  10215.  
  10216. This is my first attempt at writing a script (and my first list
  10217. posting). I'm using AppleScript v1.1. I wrote it based on one of
  10218. the examples I found on my StuffIt Deluxe v3.0.7 disk.
  10219.  
  10220.      UnZip Droplet
  10221.      =============
  10222.  
  10223.      on open (docList)
  10224.              repeat with sourceFile in docList
  10225.                      set transName to "Zip"
  10226.                      set commandString to "decode \"" & sourceFile & "\""
  10227.                      tell application "StuffIt Deluxe* $"
  10228.                              activate
  10229.                              with timeout of 10000 seconds
  10230.                                      Translate match name transName command 
  10231. comm
  10232. andString
  10233.                              end timeout
  10234.                      end tell
  10235.              end repeat
  10236.              quit application "StuffIt Deluxe* $"
  10237.      end open
  10238.  
  10239.      =============
  10240.  
  10241. NOTE: The "$" character on the end of the application name is added
  10242. by KeyServer, an application we use for managing software licensing
  10243. and protection, to show that that application has been KeyServed.
  10244.  
  10245. I saved it as a Compiled Script and drag Zip files onto it to UnZip
  10246. them. Sometimes it works, sometimes it fails and when I bring the
  10247. Script Editor to the front it shows me this error message dialog box:
  10248.  
  10249.      ---------------------------------
  10250.     | The 'Tran' verb requires a text |
  10251.     | parameter with a key of 'name'. |
  10252.      ---------------------------------
  10253.  
  10254.  
  10255. When I look at StuffIt Deluxe's dictionary I find this entry for the
  10256. Translate command:
  10257.  
  10258.      Translate: Accesses the translators
  10259.         Translate  '    '
  10260.                 name  string  -- Use this parameter to specify the translator
  10261.                         to be used
  10262.                 command  string  -- Use this parameter to specify the commands
  10263.                            to send the translator
  10264.         Result:   small integer  -- A zero return indicates that the
  10265.                                   file was translated properly.
  10266.  
  10267.  
  10268. Why does the example I found in StuffIt Deluxe use the word "match"
  10269. after the command Translate? It's not in the dictionary and I don't
  10270. see any reference to it in "The Tao of AppleScript". I'm not sure what
  10271. it does, I guess.
  10272.  
  10273. When I get the above mentioned error, if I go back to my script and
  10274. remove "match" and recompile, the Script Editor puts "match" back in.
  10275. If I then re-drop my Zip file the script will work again, but will
  10276. eventually fail again.
  10277.  
  10278. Thoughts anyone?
  10279.  
  10280.  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  10281.                                       |     Michael C. Dreimiller
  10282.        _/_/_/_/_/          _/_/_/_/   |        Systems Analyst
  10283.       _/  _/  _/          _/      _/  |    Vitro - a Tracor company
  10284.      _/  _/  _/  _/_/_/  _/      _/   |       194 Howard Street
  10285.     _/      _/  _/      _/      _/    |   New London, CT 06320-5523
  10286.    _/      _/  _/_/_/  _/_/_/_/       |   Phone: 203-443-2465 x5218
  10287.                                       |       Fax: 203-447-4561
  10288.  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  10289.                  Internet: dreimiller@vsdec.nl.nuwc.navy.mil
  10290.  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  10291.  
  10292. =========================================================================
  10293. Date:         Tue, 24 May 1994 09:25:00 LCL
  10294. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10295. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10296. From:         Mark Tucker <mark.tucker@HIS.COM>
  10297. Organization: Heller Information Services, Inc., Rockville MD
  10298. Subject:      FILEMAKER PRO
  10299.  
  10300. I am trying to use Applescript to have a Filemaker Pro database find all of the
  10301. records modified on a certain day and then export the found records.  The
  10302. problem is that if there are no records modified FileMaker puts up a dialog
  10303. asking if I want to cancel, continue or do a refind.  Is there any way to avoid
  10304. this dialog?  Or is there a way to have AppleScript activate the continue
  10305. button?  Thanks.
  10306. =========================================================================
  10307. Date:         Tue, 24 May 1994 09:24:48 -0600
  10308. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10309. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10310. From:         "Desmond K. Mullen" <mulle009@MAROON.TC.UMN.EDU>
  10311. Subject:      Re: MountVolume OSAX
  10312.  
  10313. >I have this in my scripting additions folder, and I can't seem to find its
  10314. >origin.  Is is part of the GTQ library? If so, it is not documented.
  10315. >
  10316. >In any case, how do you mount a volume without a zone? Giving a zone name of
  10317. >"" does not work.
  10318.  
  10319.  
  10320. At the risk of being totally wrong, I will hazard an answer:
  10321.  
  10322.  
  10323. If you have zones it may be: "Large University Zone:Big Mac"
  10324.  
  10325. If you don't have zones (no network) it would be: "*:Big Mac"
  10326.  
  10327. So, try "*" for the zone or maybe leave out the zone parameter?
  10328.  
  10329. -DM
  10330.  
  10331. Desmond K. Mullen - University of Minnesota, Office of Admissions
  10332. mulle009@maroon.tc.umn.edu - 612/625-0824
  10333. =========================================================================
  10334. Date:         Tue, 24 May 1994 08:02:55 -0800
  10335. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10336. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10337. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  10338. Subject:      Re: telling an osax?
  10339.  
  10340. Oh wise and wonderful osax czar, Jon Pugh, thanks! Kee Nethery
  10341.  
  10342. _________________________________________________________________
  10343. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  10344. =========================================================================
  10345. Date:         Tue, 24 May 1994 08:36:55 -0700
  10346. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10347. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10348. From:         David Ray <daver@NETCOM.COM>
  10349. Subject:      Re: StuffIt Deluxe script ??s
  10350.  
  10351. >When I get the above mentioned error, if I go back to my script and
  10352. >remove "match" and recompile, the Script Editor puts "match" back in.
  10353. >If I then re-drop my Zip file the script will work again, but will
  10354. >eventually fail again.
  10355.  
  10356. FWIW, I have exactly the same problem. The script won't compile even though
  10357. I know the synyax is correct. If I remove "match" and recompile, the word
  10358. "match" is put back in, and the script runs. But if I make *any* change
  10359. to the script and compile it again, I get the same error.
  10360.  
  10361. I ran into this problem with a client and had to remove all 'translate'
  10362. commands in order to remove this flakyness.
  10363.  
  10364. Any clues, Aladdin? (Leonard?)
  10365.  
  10366. -Dave
  10367. =========================================================================
  10368. Date:         Tue, 24 May 1994 12:35:04 EDT
  10369. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10370. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10371. From:         "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
  10372. Subject:      Slowness
  10373.  
  10374. I have found that AppleScript is just too slow for many of the things I need
  10375. to do.
  10376.  
  10377. Examples:
  10378.  
  10379. I am using a scriptable mail program (BlitzMail, a local home-brew here at
  10380. Dartmouth which is, in every other way, an incredibly fast program). Any
  10381. script I write to control it, no matter how simple, is just too slow to be
  10382. very useful.
  10383.  
  10384. On our local MacHTTP server here we use scripts to generate the TidBITS pages
  10385. (simply generate the HTML page based on the contents of a given folder). This
  10386. slows the server down unbelievable.
  10387.  
  10388. Anyone else feel that AppleScript has too high an overhead?
  10389.  
  10390. -A
  10391. =========================================================================
  10392. Date:         Tue, 24 May 1994 14:40:03 -0400
  10393. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10394. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10395. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  10396. Subject:      Jon's Commands keys pressed with a droplet...
  10397.  
  10398.     I've been hitting a strange snag trying to get the keys that are
  10399. being held down when a file is dropped onto a droplet. Can anyone tell
  10400. my why this doesn't work?
  10401.  
  10402. on open theFiles
  10403.    set theKeys to (keys pressed)
  10404.    display dialog theKeys
  10405. end open
  10406.  
  10407.     As soon as the droplet tries to run I geta beep every second until I
  10408. release any keys that I was holding down. Is there a way to fix this?
  10409.  
  10410. -Hades
  10411. =========================================================================
  10412. Date:         Tue, 24 May 1994 11:47:19 -0800
  10413. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10414. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10415. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  10416. Subject:      Re: StuffIt Deluxe script ??s
  10417.  
  10418. >I saved it as a Compiled Script and drag Zip files onto it to UnZip
  10419. >them. Sometimes it works, sometimes it fails and when I bring the
  10420. >Script Editor to the front it shows me this error message dialog box:
  10421. >
  10422.         I don't understand why it only works sometimes - it should either
  10423. work, or not...
  10424.  
  10425.  
  10426. >Why does the example I found in StuffIt Deluxe use the word "match"
  10427. >after the command Translate? It's not in the dictionary and I don't
  10428. >see any reference to it in "The Tao of AppleScript". I'm not sure what
  10429. >it does, I guess.
  10430. >
  10431.         Long story that goes back about 2+ years to when I first added
  10432. Apple event/AppleScript support to StuffIt.  At that time, AppleScript was
  10433. still in its infancy and the 'aete' and how it worked was in fluxed.  As
  10434. such, our 'aete' reflects idiosyncracies of prototype AppleScripts that are
  10435. no longer true in the shipping versions.  Since we haven't released a new
  10436. version since AS shipped, we still have those things in there.  Future
  10437. StuffIt's won't have the problem!
  10438.  
  10439.  
  10440. Leonard
  10441.  
  10442. -----------------------------------------------------------------------------
  10443. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  10444. Director of Advanced Technology         AppleLink:      MACgician
  10445. Aladdin Systems, Inc.                   GEnie:          MACgician
  10446. =========================================================================
  10447. Date:         Tue, 24 May 1994 15:12:58 -0400
  10448. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10449. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10450. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  10451. Subject:      Re: FILEMAKER PRO
  10452. In-Reply-To:  <no.id> from "Mark Tucker" at May 24, 94 09:25:00 am
  10453.  
  10454. --Mark Tucker wrote:
  10455. >
  10456. >I am trying to use Applescript to have a Filemaker Pro database find all
  10457. >of the records modified on a certain day and then export the found
  10458. >records.  The problem is that if there are no records modified FileMaker
  10459. >puts up a dialog asking if I want to cancel, continue or do a refind.
  10460. >Is there any way to avoid this dialog?  Or is there a way to have
  10461. >AppleScript activate the continue button?  Thanks.
  10462.  
  10463.     Well, this depends on whether or not you are using a "show" command
  10464. from AppleScript, or you are using the "do script" command to run a FM
  10465. Pro script that actually does the find. If it's the latter, then there
  10466. is no way to have AppleScript get rid of the FM Pro dialog box. You only
  10467. solution to this is to use the "show" command and direct the find from
  10468. AppleScript. If you are already using the "show" command, then you will
  10469. need to use something like the following (you should also use this if
  10470. you are chaning over to the "show" command):
  10471.  
  10472. tell application "FileMaker Pro"
  10473.      try
  10474.          Show (every Record whose Cell "modified date" > "5/24/94")
  10475.          Do Script "Export Records"
  10476.      on error -- this means that there were no records found.
  10477.         (* Do whatever is appropriate for not finding any records *)
  10478.      end try
  10479. end tell
  10480.  
  10481.  
  10482. -Hades
  10483. =========================================================================
  10484. Date:         Tue, 24 May 1994 13:14:11 -0600
  10485. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10486. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10487. From:         Kyle Maxwell <maxwell@CC.DIXIE.EDU>
  10488. Subject:      AS-L: A Suggestion.
  10489.  
  10490. Hi guys.  After having been on the list for two weeks, I must say that it's
  10491. been one of the more useful lists I've subscribed to.  All the imput has
  10492. been great!
  10493.  
  10494. However....
  10495.  
  10496. I, like many of you, am a professional, working at an office.  I subscribe
  10497. to roughly a dozen lists.  Every other list I'm in has a naming convention,
  10498. so that incoming mail can be recognized and sorted.  This list hasn't
  10499. adopted a naming convention for messages, so it just gets dumped into the
  10500. main message queue.
  10501.  
  10502. Take a few recent messages, for example.  Subject titles like "FileMaker
  10503. Pro" or "Slowness" could refer to anything.  There's no way to filter
  10504. these, short of opening them, reading them, and moving them manually.  (A
  10505. little primitive, considering that we're all writing AppleScripts to
  10506. automate these kind of tasks.)
  10507.  
  10508. I humbly suggest that a naming convention be adopted for the list.  My
  10509. suggestion is:  Put AS-L (AppleScript-List) in all subject headers.  This
  10510. is consistent with most other mailing lists, and will make mail-sorting
  10511. MUCH easier....
  10512.  
  10513. Kyle
  10514.  
  10515. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  10516. "I'd feel worse if I weren't under such heavy sedation..."
  10517. -David St. Hubbins, Spinal Tap
  10518. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  10519. =========================================================================
  10520. Date:         Tue, 24 May 1994 15:37:09 U
  10521. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10522. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10523. From:         Shawn Connelly <sconnelly@QM.PRUBANK.COM>
  10524. Subject:      Net Volumes in Frontier
  10525.  
  10526.                  Net Volumes in Frontier
  10527. I would like to test for the availability of a server on the network
  10528. without neccessarily mounting the volume. Does anyone know of a way to do
  10529. this from Frontier?
  10530.  
  10531. Thanks.
  10532.  
  10533.  ------------------------------------------------------------------------
  10534.  Shawn Connelly                          |  Computers are useless. They
  10535.  The Prudential Bank                     |   can only give you answers.
  10536.  Two Concourse Pkwy, #400                |    - Pablo Picasso
  10537.  Atlanta, GA 30328                       |
  10538.  Internet: shawn@prubank.com -or- shawn@cars.com; Phone: 404-604-7939
  10539. =========================================================================
  10540. Date:         Tue, 24 May 1994 16:10:23 -0400
  10541. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10542. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10543. From:         Bob Snyder <snyderra@DUNX1.OCS.DREXEL.EDU>
  10544. Subject:      Re: AS-L: A Suggestion.
  10545. In-Reply-To:  <9405241914.AA08997@cc.dixie.edu.dixie.edu> from "Kyle Maxwell"
  10546.               at May 24, 94 01:14:11 pm
  10547.  
  10548. Kyle Maxwell scribbles:
  10549.  
  10550. > I humbly suggest that a naming convention be adopted for the list.  My
  10551. > suggestion is:  Put AS-L (AppleScript-List) in all subject headers.  This
  10552. > is consistent with most other mailing lists, and will make mail-sorting
  10553. > MUCH easier....
  10554. >
  10555.  
  10556. On the many, many lists I've been on, I've not seen a convention like
  10557. this adopted...  I don't think it's necessary, given there are enough
  10558. other headers to sort/filter mail on, like "Sender:"  Elm's filter,
  10559. procmail, and Eudora 2 can all deal with using the Sender: header.
  10560. I'd rather the Subject line not be used for this.
  10561.  
  10562. Bob
  10563. =========================================================================
  10564. Date:         Tue, 24 May 1994 15:16:34 -0600
  10565. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10566. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10567. From:         Tom Donovan <donovan@COVIS.NWU.EDU>
  10568. Subject:      Re: AS-L: A Suggestion.
  10569.  
  10570. >Hi guys.  After having been on the list for two weeks, I must say that it's
  10571. >been one of the more useful lists I've subscribed to.  All the imput has
  10572. >been great!
  10573. >
  10574. >However....
  10575. >
  10576. >I, like many of you, am a professional, working at an office.  I subscribe
  10577. >to roughly a dozen lists.  Every other list I'm in has a naming convention,
  10578. >so that incoming mail can be recognized and sorted.  This list hasn't
  10579. >adopted a naming convention for messages, so it just gets dumped into the
  10580. >main message queue.
  10581. >
  10582. >Take a few recent messages, for example.  Subject titles like "FileMaker
  10583. >Pro" or "Slowness" could refer to anything.  There's no way to filter
  10584. >these, short of opening them, reading them, and moving them manually.  (A
  10585. >little primitive, considering that we're all writing AppleScripts to
  10586. >automate these kind of tasks.)
  10587. >
  10588. >I humbly suggest that a naming convention be adopted for the list.  My
  10589. >suggestion is:  Put AS-L (AppleScript-List) in all subject headers.  This
  10590. >is consistent with most other mailing lists, and will make mail-sorting
  10591. >MUCH easier....
  10592. >
  10593. >Kyle
  10594. >
  10595. >xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  10596. >"I'd feel worse if I weren't under such heavy sedation..."
  10597. >-David St. Hubbins, Spinal Tap
  10598. >xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  10599.  
  10600.  
  10601. Kyle,
  10602.  
  10603. That sounds like a fine idea, but assuming something less than 100%
  10604. adherence to some naming convention ("AS-L:", "MacScript-L",
  10605. AppleScript-L"?), you can modify your sorting script to check one of the
  10606. header fields.  At least in my mail, the  "Reply-To", "Sender", and "To"
  10607. fields are consistent--the headers look like this:
  10608.  
  10609. >Date:         Tue, 24 May 1994 13:14:11 -0600
  10610. >Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10611. >Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10612. >From: Kyle Maxwell <maxwell@CC.DIXIE.EDU>
  10613. >Subject:      AS-L: A Suggestion.
  10614. >X-To:         Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10615. >To: Multiple recipients of list MACSCRPT <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10616.  
  10617. Maybe others on the list who are more experienced can tell why this would
  10618. *not* work, but it sure seems to me like it would do the trick.
  10619.  
  10620. --Tom
  10621.  
  10622. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  10623. Tom Donovan           "Perhaps the most universal information trap is the...
  10624. System Administrator   trap of forgetting what it's like not to know. The
  10625. CoVis Project          minute we know something, we forget what it was like
  10626. Northwestern Univ.     not to know it."             --Richard S. Wurman
  10627.                                                       "Information Anxiety"
  10628. E-mail: donovan@covis.nwu.edu
  10629. (Check out the CoVis Web Server at URL: http://www.covis.nwu.edu/)
  10630. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  10631. =========================================================================
  10632. Date:         Tue, 24 May 1994 16:18:49 -0400
  10633. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10634. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10635. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  10636. Subject:      Re: AS-L: A Suggestion.
  10637. In-Reply-To:  <no.id> from "Kyle Maxwell" at May 24, 94 01:14:11 pm
  10638.  
  10639. --Kyle Maxwell wrote:
  10640. >
  10641. >I, like many of you, am a professional, working at an office.  I subscribe
  10642. >to roughly a dozen lists.  Every other list I'm in has a naming convention,
  10643. >so that incoming mail can be recognized and sorted.  This list hasn't
  10644. >adopted a naming convention for messages, so it just gets dumped into the
  10645. >main message queue.
  10646.  
  10647.     Well, if we weren't all friends and stuff I would simply say, "Get a
  10648. better email program." I have no problem sorting all of my MacScrpt-L
  10649. traffic to it's appropriate mailbox.
  10650.  
  10651. >Take a few recent messages, for example.  Subject titles like "FileMaker
  10652. >Pro" or "Slowness" could refer to anything.  There's no way to filter
  10653. >these, short of opening them, reading them, and moving them manually.  (A
  10654. >little primitive, considering that we're all writing AppleScripts to
  10655. >automate these kind of tasks.)
  10656.  
  10657.     This kind of thing happens when the scope of the mailing list is as
  10658. wide as this one. There is almost no limit to the number of relative
  10659. subjects that can be discussion on this list.
  10660.  
  10661. >I humbly suggest that a naming convention be adopted for the list.  My
  10662. >suggestion is:  Put AS-L (AppleScript-List) in all subject headers.  This
  10663. >is consistent with most other mailing lists, and will make mail-sorting
  10664. >MUCH easier....
  10665.  
  10666.     Ah... now we come to the problem. This is not the "AppleScript-List"
  10667. as you refer to it above. This mailing list covers all topics related to
  10668. scripting on the Mac. Specifically AppleScript, Frontier, QuicKeys, some
  10669. HyperCard, Frontmost/FaceSpan, all scriptable applications, and
  10670. scripting additions, and all kinds of other topics that are related to
  10671. scripting on the Mac. I certainly don't want to have to put a
  10672. "MacScrpt-L" in front of every message I send to this list, and I doubt
  10673. many others will either.
  10674.     As a possible solution, you could have the list sent to you as a
  10675. daily digest. This would solve the problem of having lots of random
  10676. messages in your default mailbox. As long as you aren't doing a lot of
  10677. replying to posts, the digest format is probably one of the best ways to
  10678. receive a listserv list.
  10679.     Of course, if you have a mail program that allows for sorting based
  10680. on more than just Subject, you wouldn't have this problem at all. ;->
  10681.  
  10682. -Hades
  10683. =========================================================================
  10684. Date:         Tue, 24 May 1994 16:38:01 -0500
  10685. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10686. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10687. From:         Ted Goranson <goranson@ISI.EDU>
  10688. Subject:      Re: AS-L: A Suggestion.
  10689.  
  10690. >I humbly suggest that a naming convention be adopted for the list.  My
  10691. >suggestion is:  Put AS-L (AppleScript-List) in all subject headers.  This
  10692. >is consistent with most other mailing lists, and will make mail-sorting
  10693. >MUCH easier....
  10694. >
  10695. >Kyle
  10696.  
  10697. Really great idea! This is the only group of about a dozen to which I
  10698. subscribe that is so poorly headed. So my sorter doesn't work. This can be
  10699. fixed at the server level. But there are some things which posters could do
  10700. to make things better. If the message is about an app, please say so in the
  10701. header, so we can kill messages not of interest.
  10702.  
  10703. BTW, this is <not> an AS list! Some of us, possibly the ones who could
  10704. contribute a lot, are Frontier scripters. If the topic is cogent to that
  10705. superior environment, a user-added "frontier" in the header would probably
  10706. get better response. 'Cepting  from that helpful maven, all-wet-Baxter, who
  10707. seems biscriptual.
  10708.  
  10709. ---Ted
  10710.  
  10711. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  10712.  .....| Ted Goranson, Sirius-Beta               |                   |
  10713.  .....| 1976 Munden Pt, Va Beach VA 23457-1227  |  ARoarABoaryAlice |
  10714.  .....| 804/426-6704, Fax 804/721-0781          |                   |
  10715. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  10716. =========================================================================
  10717. Date:         Tue, 24 May 1994 14:41:08 -0600
  10718. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10719. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10720. From:         Kyle Maxwell <maxwell@CC.DIXIE.EDU>
  10721. Subject:      Re: AS-L: A Suggestion.
  10722.  
  10723. >That sounds like a fine idea, but assuming something less than 100%
  10724. >adherence to some naming convention ("AS-L:", "MacScript-L",
  10725. >AppleScript-L"?), you can modify your sorting script to check one of the
  10726. >header fields.  At least in my mail, the  "Reply-To", "Sender", and "To"
  10727. >fields are consistent--the headers look like this:
  10728. >
  10729. >>Date:         Tue, 24 May 1994 13:14:11 -0600
  10730. >>Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10731. >>Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10732. >>From: Kyle Maxwell <maxwell@CC.DIXIE.EDU>
  10733. >>Subject:      AS-L: A Suggestion.
  10734. >>X-To:         Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10735. >>To: Multiple recipients of list MACSCRPT <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10736. >
  10737. >Maybe others on the list who are more experienced can tell why this would
  10738. >*not* work, but it sure seems to me like it would do the trick.
  10739. >
  10740. >--Tom
  10741.  
  10742. In Eudora 1.4.2, the sender field is always the name of the person that
  10743. sent the message.  Eudora doesn't allow you to search by the "Reply-To"
  10744. field.  Eudora's only searchable parameters are: Sender, Status, Size,
  10745. Date, and Subject.  (You can only search incoming mail from a toplevel
  10746. folder)
  10747.  
  10748. Thus, if John Q. Public sends a message to the list, Eudora lists "John Q.
  10749. Eudora" in the sender field, not "Machintosh Scripting Systems."
  10750.  
  10751. I don't know WHY Eudora substitutes the senders name and address for the
  10752. distributing mail server.  If anyone else knows why this happens, and how
  10753. to change it, I'd appreciate hearing about it...
  10754.  
  10755. Any suggestions from the group?
  10756.  
  10757. Kyle
  10758.  
  10759. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  10760. "I'd feel worse if I weren't under such heavy sedation..."
  10761. -David St. Hubbins, Spinal Tap
  10762. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  10763. =========================================================================
  10764. Date:         Tue, 24 May 1994 14:49:16 -0600
  10765. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10766. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10767. From:         Kyle Maxwell <maxwell@CC.DIXIE.EDU>
  10768. Subject:      Re: AS-L: A Suggestion.
  10769.  
  10770. >Kyle Maxwell scribbles:
  10771. >
  10772. >> I humbly suggest that a naming convention be adopted for the list.  My
  10773. >> suggestion is:  Put AS-L (AppleScript-List) in all subject headers.  This
  10774. >> is consistent with most other mailing lists, and will make mail-sorting
  10775. >> MUCH easier....
  10776. >>
  10777. >
  10778. >On the many, many lists I've been on, I've not seen a convention like
  10779. >this adopted...  I don't think it's necessary, given there are enough
  10780. >other headers to sort/filter mail on, like "Sender:"  Elm's filter,
  10781. >procmail, and Eudora 2 can all deal with using the Sender: header.
  10782. >I'd rather the Subject line not be used for this.
  10783. >
  10784. >Bob
  10785.  
  10786.  
  10787. Hmm.  Your "many, many lists" DON'T use a naming convention, my "many, many
  10788. lists" DO use a naming convention.  One of us spends too much time on
  10789. Usenet...  <grin>
  10790.  
  10791. I ordered Eudora 2.0 two weeks ago, and it STILL hasn't arrived.  If it
  10792. handles searches through headers, great.  Forget I said anything.  ;-)  I
  10793. kind of figured Eudora 2.0 would fix this problem, but given the fact that
  10794. they apparently compile each copy to order, I haven't been able to test my
  10795. assumption.  I've been using AppleScript to sort my mail.
  10796.  
  10797. Thanks for the info,
  10798.  
  10799. Kyle
  10800.  
  10801. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  10802. "I'd feel worse if I weren't under such heavy sedation..."
  10803. -David St. Hubbins, Spinal Tap
  10804. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  10805. =========================================================================
  10806. Date:         Tue, 24 May 1994 17:02:18 -0500
  10807. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10808. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10809. From:         David Myers <dcmyers@ACCESS.DIGEX.NET>
  10810. Subject:      Overhead of function calls in Frontier?
  10811.  
  10812. Has anybody ever done performance timings for various actions in
  10813. Frontier?  I'd really like to know the overhead of looking up
  10814. an item in the Object Database versus doing a function call.
  10815.  
  10816. For example, suppose I define this table entry:
  10817.  
  10818. people.DCM.randomString = "This is a random string"
  10819.  
  10820. and use this entry in the following way:
  10821.  
  10822. msg(people.DCM.randomString + "...Yes, it is.")
  10823.  
  10824. Will that be faster than if I defined a function as follows:
  10825.  
  10826. on produceARandomString()
  10827.         return ("This is a random string.")
  10828.  
  10829. and called it like this:
  10830.  
  10831. msg(produceARandomString() + "...Yes, it is")
  10832.  
  10833. I'd certainly expect the table lookup to be faster, but by how much?
  10834.  
  10835. Just curious.  Thanks.
  10836.  
  10837.  
  10838.  
  10839. ____________________________________________________
  10840.  
  10841. David C. Myers
  10842. dcmyers@access.digex.net
  10843. =========================================================================
  10844. Date:         Tue, 24 May 1994 16:40:10 U
  10845. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10846. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10847. From:         Shawn Connelly <sconnelly@QM.PRUBANK.COM>
  10848. Subject:      Importing in Frontier
  10849.  
  10850.                  Importing in Frontier
  10851. I'm writing an importer for Frontier and have been trying to get the
  10852. exported objects to import without the confirmation dialogs, and
  10853. displaying every imported object.
  10854.  
  10855. Does anyone have a technique or script that does this?
  10856.  
  10857. Thanks.
  10858.  
  10859.  ------------------------------------------------------------------------
  10860.  Shawn Connelly                          |  Computers are useless. They
  10861.  The Prudential Bank                     |   can only give you answers.
  10862.  Two Concourse Pkwy, #400                |    - Pablo Picasso
  10863.  Atlanta, GA 30328                       |
  10864.  Internet: shawn@prubank.com -or- shawn@cars.com; Phone: 404-604-7939
  10865. =========================================================================
  10866. Date:         Tue, 24 May 1994 14:22:18 -0800
  10867. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10868. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10869. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  10870. Subject:      Re: Slowness
  10871.  
  10872. >I have found that AppleScript is just too slow for many of the things I need
  10873. >to do.
  10874. >
  10875.         I have a feeling it is NOT AppleScript, but instead is two things -
  10876. one, the application in question and two the System Software you are using.
  10877. If you run an AppleScript that does not communicate with applications,
  10878. you will find that it is VERY fast as far as a scripting language goes
  10879. (though UserTalk is faster - especially the native version ;).   But as
  10880. soon as the Process Manager and other people's code come into play,
  10881. anything is fair game...
  10882.  
  10883.         The PM problem will go away in the next major System Software
  10884. version, but applications can always be a bottleneck...
  10885.  
  10886.  
  10887. Leonard
  10888.  
  10889. -----------------------------------------------------------------------------
  10890. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  10891. Director of Advanced Technology         AppleLink:      MACgician
  10892. Aladdin Systems, Inc.                   GEnie:          MACgician
  10893. =========================================================================
  10894. Date:         Tue, 24 May 1994 17:20:39 -0400
  10895. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10896. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10897. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  10898. Subject:      Re: AS-L: A Suggestion.
  10899. In-Reply-To:  <no.id> from "Kyle Maxwell" at May 24, 94 02:49:16 pm
  10900.  
  10901. --Kyle Maxwell wrote:
  10902. >
  10903. >Hmm.  Your "many, many lists" DON'T use a naming convention, my "many, many
  10904. >lists" DO use a naming convention.  One of us spends too much time on
  10905. >Usenet...  <grin>
  10906.  
  10907.     While I have no doubt that there are many lists that do use Subject
  10908. line conventions none of the lists that I currently belong to: Mac-L,
  10909. MacPb-L, MacScrpt, FmPro-L, Newton-L, MacNet-L, MacAppli, MacHrdwr,
  10910. MacSystm, QuicKeys, Global Village, 4D, and PowerPC-L make use of any
  10911. standard naming convention.
  10912.  
  10913. >I ordered Eudora 2.0 two weeks ago, and it STILL hasn't arrived.  If it
  10914. >handles searches through headers, great.  Forget I said anything.  ;-)  I
  10915. >kind of figured Eudora 2.0 would fix this problem, but given the fact that
  10916. >they apparently compile each copy to order, I haven't been able to test my
  10917. >assumption.  I've been using AppleScript to sort my mail.
  10918.  
  10919.     I don't know the capabilites of Eudora 2.0 vs. 1.4.3 but if either
  10920. of them allow you to look at the To: field your problem might be solved
  10921. already. All listservs show the To: field as :
  10922.  
  10923.     To: Multiple recipients of list MACSCRPT <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10924.  
  10925.     This is the field that I use in elm to sort all of my listserv
  10926. mailing lists.
  10927.  
  10928. -Hades
  10929. =========================================================================
  10930. Date:         Tue, 24 May 1994 17:20:46 EDT
  10931. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10932. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10933. From:         Shaddar@AOL.COM
  10934. Subject:      Re: Slowness
  10935.  
  10936. >I have found that AppleScript is just too slow for many of the things I need
  10937. >to do.
  10938.  
  10939. >Examples:
  10940.  
  10941. >I am using a scriptable mail program (BlitzMail, a local home-brew here at
  10942. >Dartmouth which is, in every other way, an incredibly fast program). Any
  10943. >script I write to control it, no matter how simple, is just too slow to be
  10944. >very useful.
  10945.  
  10946. >On our local MacHTTP server here we use scripts to generate the TidBITS
  10947. pages
  10948. >(simply generate the HTML page based on the contents of a given folder).
  10949. This
  10950. >slows the server down unbelievable.
  10951.  
  10952. >Anyone else feel that AppleScript has too high an overhead?
  10953.  
  10954. Yes, I've written a few scripts which were very time consuming to run.  For
  10955. example, I had a script which searched text to replace certain common items,
  10956. and found that I could do it almost as fast by hand.  Encryption using STE is
  10957. rediculous.  I tried to write a simple drag-and-drip encryption program but
  10958. it took *forever*.  I wonder if this is because apple events happen less
  10959. frequently or because of timeouts and application responses.  Maybe ignoring
  10960. application responses would speed it up if it didn't screw up the code.  Does
  10961. anyone know a way to speed AS up?
  10962.  
  10963. ~Josh~
  10964. =========================================================================
  10965. Date:         Tue, 24 May 1994 15:41:14 -0700
  10966. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10967. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10968. From:         Greg Kearney <gkearney@CSN.ORG>
  10969. Subject:      Sendign a kill event
  10970.  
  10971. Can someone out there tell me how to send a kill event to a program which
  10972. is not scriptable.  I need to use kill over quit because I don't want to
  10973. see the save document warning which require someone to responds.  I need
  10974. either a small scriptable utilities which I can use to send a kill or
  10975. information on how to send the kill event directly to the application.
  10976.  
  10977. I'm also looking for an ASOX that will send keyboard like events something
  10978. like sending a return key
  10979.  
  10980. Thanks for the help.
  10981.  
  10982. Greg Kearney
  10983.  
  10984. ------------------------------------------------------------------------------
  10985. gkearney@csn.org                        Gregory Kearney
  10986. (307) 266-0570 voice                    Howard Publications Newspaper Group
  10987. (307) 266-0501 fax                      170 Star Lane P.O. Box 80
  10988.                                         Casper, Wyoming 82602
  10989. ------------------------------------------------------------------------------
  10990. =========================================================================
  10991. Date:         Tue, 24 May 1994 16:36:33 -0600
  10992. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10993. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10994. From:         "Desmond K. Mullen" <mulle009@MAROON.TC.UMN.EDU>
  10995. Subject:      Re: AS-L: A Suggestion.
  10996.  
  10997. >Kyle Maxwell scribbles:
  10998. >
  10999. >> I humbly suggest that a naming convention be adopted for the list.  My
  11000. >> suggestion is:  Put AS-L (AppleScript-List) in all subject headers.  This
  11001. >> is consistent with most other mailing lists, and will make mail-sorting
  11002. >> MUCH easier....
  11003. >>
  11004. >
  11005. >On the many, many lists I've been on, I've not seen a convention like
  11006. >this adopted...  I don't think it's necessary, given there are enough
  11007. >other headers to sort/filter mail on, like "Sender:"  Elm's filter,
  11008. >procmail, and Eudora 2 can all deal with using the Sender: header.
  11009. >I'd rather the Subject line not be used for this.
  11010. >
  11011. >Bob
  11012.  
  11013.  
  11014. I second Bob's motion - I have Eudora sort my mail by sender. MACSCRPT
  11015. messages are put in my AppleScript mailbox.
  11016.  
  11017. I think it's best to sort by the most dependable variable - MACSCRPT
  11018. messages are always going to have "Macintosh Scripting Systems
  11019. <MACSCRPT@blah.blah>" as the sender (or whatever it is on your system - it
  11020. doesn't change).
  11021.  
  11022. -DM
  11023.  
  11024. Desmond K. Mullen - University of Minnesota, Office of Admissions
  11025. mulle009@maroon.tc.umn.edu - 612/625-0824 - Minneapolis, Minnesota, USA
  11026. =========================================================================
  11027. Date:         Tue, 24 May 1994 16:35:37 -0600
  11028. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11029. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11030. From:         Tom Donovan <donovan@COVIS.NWU.EDU>
  11031. Subject:      Re: AS-L: A Suggestion.
  11032.  
  11033. >
  11034. >In Eudora 1.4.2, the sender field is always the name of the person that
  11035. >sent the message.  Eudora doesn't allow you to search by the "Reply-To"
  11036. >field.  Eudora's only searchable parameters are: Sender, Status, Size,
  11037. >Date, and Subject.  (You can only search incoming mail from a toplevel
  11038. >folder)
  11039. >
  11040. >Thus, if John Q. Public sends a message to the list, Eudora lists "John Q.
  11041. >Eudora" in the sender field, not "Machintosh Scripting Systems."
  11042. >
  11043. >I don't know WHY Eudora substitutes the senders name and address for the
  11044. >distributing mail server.  If anyone else knows why this happens, and how
  11045. >to change it, I'd appreciate hearing about it...
  11046. >
  11047. >Any suggestions from the group?
  11048. >
  11049. >Kyle
  11050. >
  11051. >xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  11052. >"I'd feel worse if I weren't under such heavy sedation..."
  11053. >-David St. Hubbins, Spinal Tap
  11054. >xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  11055.  
  11056.  
  11057. Kyle,
  11058.  
  11059. While you are correct about the searchable parameters, it is also possible
  11060. to look at the contents of particular header fields by name using the
  11061. following syntax:
  11062.  
  11063. tell app "Eudora1.4.2"
  11064.         get field "Sender" of message 1 of mailbox "in" of mail folder ""
  11065. end tell
  11066.  
  11067. For example, if the message in question is from the MacScripting list, the
  11068. statement above will return the string:
  11069.  
  11070.     "Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>"
  11071.  
  11072. On the other hand the statement, 'get Sender of message....' returns the
  11073. contents of the "From" field (minus the e-mail address).  Go figure.
  11074.  
  11075. This same syntax seems to work with any *existing* field in the header--if
  11076. the field does not exist, AppleScript returns an error.
  11077.  
  11078. --Tom
  11079. =========================================================================
  11080. Date:         Tue, 24 May 1994 17:42:49 -0500
  11081. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11082. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11083. From:         David Myers <dcmyers@ACCESS.DIGEX.NET>
  11084. Subject:      Re: Slowness
  11085.  
  11086. "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU> wrote:
  11087.  
  11088. >I have found that AppleScript is just too slow for many of the things I need
  11089. >to do.
  11090. >
  11091.  
  11092.  [...snip...]
  11093.  
  11094. >
  11095. >Anyone else feel that AppleScript has too high an overhead?
  11096. >
  11097. >-A
  11098.  
  11099.  
  11100. By slow, do you mean that the AppleScript interpreter is slow, or the
  11101. interaction of multiple programs over the appleEvent interface is slow?
  11102. I have found the latter to be true much more so than the former.  Try
  11103. this:  use the grep osax available on gaea (can't remember the author's
  11104. name; sorry!) to parse a text file.  Feed the grepper one line of text
  11105. from the file at a time.  Give yourself lots of time...The resulting
  11106. crawl is not the fault of the grep osax author, who in all wrote a
  11107. very useful little utility.  Rather, you just can't use the current
  11108. appleEvent interface for passing large quantities of data between programs.
  11109. It just doesn't have the bandwidth.
  11110.  
  11111. If this listServ has an archiving function, you can check out a thread
  11112. on AppleScript speed that went on a month or so ago.  Someone mentioned
  11113. refinements to the Process Manager that will ship with Sys 7.5 that should
  11114. speed things up a bit.
  11115.  
  11116. -David.
  11117.  
  11118.  
  11119. ____________________________________________________
  11120.  
  11121. David C. Myers
  11122. dcmyers@access.digex.net
  11123. =========================================================================
  11124. Date:         Tue, 24 May 1994 16:47:12 -0600
  11125. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11126. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11127. From:         "Desmond K. Mullen" <mulle009@MAROON.TC.UMN.EDU>
  11128. Subject:      Re: Eudora sorting
  11129.  
  11130. >In Eudora 1.4.2, the sender field is always the name of the person that
  11131. >sent the message.  Eudora doesn't allow you to search by the "Reply-To"
  11132. >field.  Eudora's only searchable parameters are: Sender, Status, Size,
  11133. >Date, and Subject.  (You can only search incoming mail from a toplevel
  11134. >folder)
  11135.  
  11136. This is not true - you can identify a whole slew of things about ANY message
  11137. in ANY folder.
  11138.  
  11139. Here's a snippet from my Eudora sorting script. I sort a bunch of mail based
  11140. on a lot of different things, so I have it grab all this info on new messages
  11141. after they've been fetched and then it sorts them accordingly.
  11142.  
  11143. -------------- some of a script ---------------
  11144. set theSender to field "From" of message x of mailbox "In" of mail folder ""
  11145. set theShortSender to Sender of message x of mailbox "In" of mail folder ""
  11146. set theRecipient to field "To" of message x of mailbox "In" of mail folder ""
  11147. set theSubject to Subject of message x of mailbox "In" of mail folder ""
  11148. try -- I don't remember why, but this is troublesome sometimes so I use "try"
  11149.   set theReply to field "Reply" of message x of mailbox "In" of mail folder ""
  11150. on error
  11151.          set theReply to ""
  11152. end try
  11153. if theReply contains "MACSCRPT" then
  11154.  (etc., etc.)
  11155. -------------- some of a script ---------------
  11156.  
  11157.  
  11158. -DM
  11159.  
  11160. Desmond K. Mullen - University of Minnesota, Office of Admissions
  11161. mulle009@maroon.tc.umn.edu - 612/625-0824 - Minneapolis, Minnesota, USA
  11162. =========================================================================
  11163. Date:         Tue, 24 May 1994 17:02:04 -0600
  11164. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11165. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11166. From:         Kyle Maxwell <maxwell@CC.DIXIE.EDU>
  11167. Subject:      My Stupid Idea...
  11168.  
  11169. Well, Tom made me see the errors of my ways as far as sorting Eudora mail...
  11170.  
  11171. I hereby retract my suggestion about a naming convention.
  11172.  
  11173. Much Thanks to Tom, who made my life a Zillion times easier!
  11174.  
  11175. Kyle
  11176.  
  11177. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  11178. "I'd feel worse if I weren't under such heavy sedation..."
  11179. -David St. Hubbins, Spinal Tap
  11180. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  11181. =========================================================================
  11182. Date:         Tue, 24 May 1994 17:43:23 -0600
  11183. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11184. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11185. From:         Kyle Maxwell <maxwell@CC.DIXIE.EDU>
  11186. Subject:      AppleScript: My Stupid Idea Part II
  11187.  
  11188. Hmmm.  Tom's idea is great except for one thing.  Once the script hits a
  11189. message sent on a peer to peer basis, it returns an error. (As Tom notes in
  11190. his last sentance.)  I can't find a way around the error.  Thus, the script
  11191. works right up until it hits a message NOT sent from a list server, then
  11192. the whole script fails.  Since regular eMail is always scattered in with
  11193. List mail, sorting based on this method isn't very practical...
  11194.  
  11195. Any comments?
  11196.  
  11197. ------------------------------
  11198. >While you are correct about the searchable parameters, it is also possible
  11199. >to look at the contents of particular header fields by name using the
  11200. >following syntax:
  11201. >
  11202. >tell app "Eudora1.4.2"
  11203. >        get field "Sender" of message 1 of mailbox "in" of mail folder ""
  11204. >end tell
  11205. >
  11206. >For example, if the message in question is from the MacScripting list, the
  11207. >statement above will return the string:
  11208. >
  11209. >    "Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>"
  11210. >
  11211. >On the other hand the statement, 'get Sender of message....' returns the
  11212. >contents of the "From" field (minus the e-mail address).  Go figure.
  11213. >
  11214. >This same syntax seems to work with any *existing* field in the header--if
  11215. >the field does not exist, AppleScript returns an error.
  11216. >
  11217. >--Tom
  11218.  
  11219.  
  11220. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  11221. "I'd feel worse if I weren't under such heavy sedation..."
  11222. -David St. Hubbins, Spinal Tap
  11223. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  11224. =========================================================================
  11225. Date:         Tue, 24 May 1994 17:57:43 -0600
  11226. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11227. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11228. From:         Kyle Maxwell <maxwell@CC.DIXIE.EDU>
  11229. Subject:      Re: AS-L: A Suggestion.
  11230.  
  11231. Well, I finally got it through my thick head.  Here's what I had to do:
  11232.  
  11233. try
  11234.     set sendHolder to field "Sender" of message i of mailbox inBox of mail
  11235. folder default
  11236.   on error
  11237.     set sendHolder to ""
  11238. end try
  11239.  
  11240. This allows peer to peer messages.
  11241.  
  11242. Thanks!
  11243.  
  11244. Kyle
  11245.  
  11246. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  11247. "I'd feel worse if I weren't under such heavy sedation..."
  11248. -David St. Hubbins, Spinal Tap
  11249. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  11250. =========================================================================
  11251. Date:         Tue, 24 May 1994 19:41:39 -0800
  11252. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11253. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11254. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  11255. Subject:      Eudora AS questions
  11256.  
  11257. 1. The following AppleScript does not work, any idea what AppleScript is used
  11258. to delete a message in the In Box that has not been marked as read?
  11259.  
  11260. ----------
  11261. property defaults : ""
  11262. property inBox : "In"
  11263. property i : {1}
  11264.  
  11265. delete message i of mailbox inBox of mail folder defaults
  11266. ----------
  11267.  
  11268.  
  11269. 2. The following AppleScripts do not return the internet address of the person
  11270. who sent the message. Field "From:" returns the entire contents of the from
  11271. field and that does work as a return address but it includes all the extra
  11272. text identifying the sender such as for me, my name and phone number.
  11273. Sender returns only the stuff in the From field that I do not want. What I
  11274. desire is the stuff in the From field that is not what you return as
  11275. Sender. What would be the proper form for acquiring just the domain style
  11276. return address of the sender?
  11277.  
  11278. ----------
  11279. set x to field "From:" of message i of mailbox inBox of mail folder defaults
  11280. set x to Sender of message i of mailbox inBox of mail folder defaults
  11281. ----------
  11282.  
  11283.  
  11284. 3. The following AppleScript returns the message body but it seems kludgy to
  11285. me. Is there a more precise form for asking for the message body other than
  11286. asking for field empty?
  11287.  
  11288. ----------
  11289. set x to field "" of message i of mailbox inBox of mail folder defaults
  11290. ----------
  11291.  
  11292.  
  11293. 4. I was unable to locate more than just a small sample of Eudora sample
  11294. AppleScripts such as "Request Eudora Info", "Eudora Notify Controller", and
  11295. "SendScript@Eudora" on the ftp server at qualcomm. Any other sources for
  11296. eudora examples?
  11297.  
  11298. Thanks all, this mailing list is a very big help.
  11299.  
  11300. Kee Nethery
  11301.  
  11302.  
  11303. _________________________________________________________________
  11304. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  11305. =========================================================================
  11306. Date:         Tue, 24 May 1994 19:49:33 -0800
  11307. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11308. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11309. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  11310. Subject:      Re: AppleScript: My Stupid Idea Part II
  11311.  
  11312. >Hmmm.  Tom's idea is great except for one thing.  Once the script hits a
  11313. >message sent on a peer to peer basis, it returns an error. (As Tom notes in
  11314. >his last sentance.)  I can't find a way around the error.  Thus, the script
  11315. >works right up until it hits a message NOT sent from a list server, then
  11316. >the whole script fails.  Since regular eMail is always scattered in with
  11317. >List mail, sorting based on this method isn't very practical...
  11318. >
  11319. >Any comments?
  11320. >
  11321.  
  11322.  
  11323. property d1 : ""
  11324. property inBox : "In"
  11325. property ms1 : "Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>"
  11326. property messageCount : {}
  11327.  
  11328. on run
  11329.  tell application "Eudora"
  11330.  activate
  11331.  set messageCount to count message of mailbox inBox of mail folder d1
  11332.  end tell
  11333.  
  11334.  -- parse mail in reverse order so that message numbering does not
  11335.  -- change as you deal with messages
  11336.  repeat with i from messageCount to 1 by -1
  11337.    tell application "Eudora"
  11338.    activate
  11339.    try
  11340.    set h1 to field "Sender" of message i of mailbox inBox of mail folder d1
  11341.    if (h1 contains ms1) then
  11342.      -- do whatever you wish to the message from MacScripting
  11343.    end if
  11344.  end repeat
  11345. end run
  11346.  
  11347.  
  11348.  
  11349. Kee Nethery
  11350.  
  11351. _________________________________________________________________
  11352. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  11353. =========================================================================
  11354. Date:         Tue, 24 May 1994 20:06:36 -0700
  11355. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11356. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11357. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  11358. Subject:      Re: AppleScript: My Stupid Idea Part II
  11359.  
  11360. >Hmmm.  Tom's idea is great except for one thing.  Once the script hits a
  11361. >message sent on a peer to peer basis, it returns an error. (As Tom notes in
  11362. >his last sentance.)  I can't find a way around the error.  Thus, the script
  11363. >works right up until it hits a message NOT sent from a list server, then
  11364. >the whole script fails.  Since regular eMail is always scattered in with
  11365. >List mail, sorting based on this method isn't very practical...
  11366. >
  11367. >Any comments?
  11368.  
  11369. Handling errors is the realm of the try ... on error ... end construct in
  11370. AppleScript.
  11371.  
  11372. tell application "Eudoraxxx"
  11373.     ...
  11374.     try
  11375.         get field "Sender" of message 1 of mailbox "in" of mail folder ""
  11376.     on error -- some parameters are available here...haven't checked Eudora's
  11377.         --do something about message 1 which does not have a "Sender" header
  11378.     end try
  11379. end tell
  11380.  
  11381.    --John
  11382.  
  11383.  
  11384. --
  11385. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  11386. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  11387. =========================================================================
  11388. Date:         Wed, 25 May 1994 08:20:58 +0100
  11389. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11390. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11391. From:         Johan Solve <johan.solve@ITN.HH.SE>
  11392. Subject:      Re: FILEMAKER PRO
  11393.  
  11394. > --Mark Tucker wrote:
  11395. > >
  11396. > >I am trying to use Applescript to have a Filemaker Pro database find all
  11397. > >of the records modified on a certain day and then export the found
  11398. > >records.  The problem is that if there are no records modified FileMaker
  11399. > >puts up a dialog asking if I want to cancel, continue or do a refind.
  11400. > >Is there any way to avoid this dialog?  Or is there a way to have
  11401. > >AppleScript activate the continue button?  Thanks.
  11402. >
  11403. >     Well, this depends on whether or not you are using a "show" command
  11404. > from AppleScript, or you are using the "do script" command to run a FM
  11405. > Pro script that actually does the find. If it's the latter, then there
  11406. > is no way to have AppleScript get rid of the FM Pro dialog box.
  11407.  
  11408. No, but you can have the FileMaker script avoid the dialog, by adding a
  11409. second search record in the script and have that second script search for a
  11410. dummy record that is empty except for a unique dummy value (such as xxx, or
  11411. in your case a dummy date, such as 1/1/1) in the search field.
  11412. This way, the search will never fail. Now have AppleScript look in the
  11413. database to see if there are any valid (non-dummy) records among the found
  11414. and if that is the case do the export.
  11415.  
  11416. This solution leaves you with an extra record with the dummy value in the
  11417. database, which perhaps isn't suitable.
  11418.  
  11419. _______________________________________________________________________
  11420.           "
  11421.    JOHAN SOLVE                   Department of Science and Technology
  11422.    <johan.solve@itn.hh.se>       Halmstad University, Sweden
  11423. =========================================================================
  11424. Date:         Wed, 25 May 1994 18:30:57 +1200
  11425. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11426. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11427. From:         Michael Norris <michael.norris@STONEBOW.OTAGO.AC.NZ>
  11428. Subject:      The GRRREAT TCP-IP Scripting Addition
  11429.  
  11430. Hi There,
  11431.  
  11432. This is an open request to anybody who has used the TCP-IP Scripting
  11433. Addition, and especially to Atul Butte (who wrote the thing).
  11434.  
  11435. It's great, but if there's one feature I'd love to see added...
  11436.  
  11437. Is there any way to check if a host name exists in a shorter space of time
  11438. than the several minutes it takes (while hanging your computer) on a tcp
  11439. connect command? Ie a tcp check host command, which would return a boolean
  11440. if there is a host of that name.
  11441.  
  11442. Cheers,
  11443.  
  11444. Michael Norris,
  11445. CAL Consultant,
  11446. University of Otago,
  11447. PO Box 56,
  11448. Dunedin,
  11449. New Zealand.
  11450. ---------------------
  11451. Ph:(03) 479-7705
  11452. E-Mail: michael.norris@stonebow.otago.ac.nz
  11453. =========================================================================
  11454. Date:         Wed, 25 May 1994 15:53:21 +0800
  11455. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11456. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11457. From:         Craig Richmond <craig@ECEL.UWA.EDU.AU>
  11458. Subject:      Re: The GRRREAT TCP-IP Scripting Addition
  11459.  
  11460. >Is there any way to check if a host name exists in a shorter space of time
  11461. >than the several minutes it takes (while hanging your computer) on a tcp
  11462. >connect command? Ie a tcp check host command, which would return a boolean
  11463. >if there is a host of that name.
  11464.  
  11465. The problem here is that the DNS requests can actually take a couple of
  11466. minutes to get a response.  Until that time, your local name server does
  11467. not know if there is a host of that name or not.
  11468.  
  11469. What you need is an external program that will do the DNS request for you
  11470. asynchronously (I don't program MacTCP or much at all for that matter and
  11471. don't know if this is possible or not) and then you can ask it for a name.
  11472. It will then have to return.
  11473.  
  11474.   a) Yes and here are the details.
  11475.   b) No it definitely does not exist.
  11476.   c) Not sure, check again soon.
  11477.  
  11478. Depending on what was happening with the particular name in question.  The
  11479. program would then have to expire the data out of its cache as time passed
  11480. etc etc.
  11481.  
  11482. Craig
  11483.  
  11484. --
  11485. Craig Richmond, Computer Officer, ECEL Computing Services  +61 9 380 1405
  11486. The University of Western Australia      or 380 3860 Email for FAX Number
  11487. craig@ecel.uwa.edu.au Dvorak Keyboards RULE!  "Messes are only acceptable
  11488. if users make them.  Applications aren't allowed this freedom" I.M.VI 2-4
  11489. =========================================================================
  11490. Date:         Tue, 24 May 1994 16:30:06 -0700
  11491. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11492. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11493. From:         Steve Kalkwarf <kalkwarf@NETCOM.COM>
  11494. Subject:      Tao script sample help
  11495.  
  11496. Hi gang!
  11497. I've read the FAQ, read the list, and even asked my friends...
  11498.  
  11499. In BMUG's Tao of AppleScript book there is a sample script on pp94-95 that
  11500. looks like:
  11501.  
  11502. >copy (choose file) to sourceFile
  11503. >copy (count resources of type "snd " in sourceFile) to resCount
  11504. >copy (get name of resource number 1 of type "snd " in sourceFile) to
  11505. resName
  11506. >tell application "Finder Liaison 1.1"
  11507. >  create file resName in Folder "Sounds" in Disk "Zot 7.1"
  11508. >  replacing yes
  11509. >  Set Type of File resName in Folder "sounds" in Disk "Zot 7.1" To "sfil"
  11510. >  Set Creator of File resName in Folder "sounds" in Disk "Zot 7.1" To
  11511. "movr"
  11512. >end tell
  11513.  
  11514. I can't get it to run. The first problem was the "...in Folder..." stuff.
  11515. The dictionary for Finder Liaison shows the syntax to be "...of
  11516. Folder...". When I changed those lines and ran the script again, I got an
  11517. error message "Expected EOL, etc. but found application constant of
  11518. consideration.".
  11519.  
  11520. So I deleted the line "replacing yes". The new error message reads "Finder
  11521. Liaison 1.1 got an error. Can't make some data into the expected type."
  11522.  
  11523. I'm using AppleScript 1.1, and I've tried Liaison 1.0 and 1.1. The disk
  11524. exists, and the folder exists at the root level of Zot.
  11525.  
  11526. I must be doing something mind-numbingly stupid here. Can anyone help me?
  11527.  
  11528. Steve
  11529. =========================================================================
  11530. Date:         Wed, 25 May 1994 13:21:27 +0100
  11531. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11532. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11533. From:         Johan Solve <johan.solve@ITN.HH.SE>
  11534. Subject:      Re: FILEMAKER PRO
  11535.  
  11536. > No, but you can have the FileMaker script avoid the dialog, by adding a 
  11537. second
  11538. > search record in the script and have that second script search for a dummy
  11539.                                                    ^^^^^^
  11540. > record that is empty except for a unique dummy value (such as xxx, or in
  11541. > your case a dummy date, such as 1/1/1) in the search field.
  11542.  
  11543. Sorry, my fingers slipped. Replace "script" above with "record".
  11544.  
  11545. _______________________________________________________________________
  11546.           "
  11547.    JOHAN SOLVE                   Department of Science and Technology
  11548.    <johan.solve@itn.hh.se>       Halmstad University, Sweden
  11549. =========================================================================
  11550. Date:         Wed, 25 May 1994 09:27:53 -0400
  11551. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11552. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11553. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  11554. Subject:      Re: Eudora AS questions
  11555. In-Reply-To:  <no.id> from "Kee Nethery +1 510 843 6140" at May 24,
  11556.               94 07:41:39 pm
  11557.  
  11558.     Well, I'm not a Eudora scripter but I do know a little about it...
  11559.  
  11560. --Kee Nethery wrote:
  11561. >
  11562. >What I desire is the stuff in the From field that is not what you return
  11563. >as Sender. What would be the proper form for acquiring just the domain
  11564. >style return address of the sender?
  11565. >----------
  11566. >set x to field "From:" of message i of mailbox inBox of mail folder defaults
  11567. >set x to Sender of message i of mailbox inBox of mail folder defaults
  11568. >----------
  11569.  
  11570.     Well, it's sort of supposed to return the entire contents of the
  11571. field. However, there is a fairly simple way to find just the email
  11572. address. Try this:
  11573.  
  11574. set xList to words of x
  11575. repeat with i from 1 to count xList
  11576.     if item i of xList = "@" then exit repeat
  11577. end repeat
  11578. set xReturn to (item (i-1) of xList) & "@" & (item (i+1) of xList)
  11579.  
  11580. >3. The following AppleScript returns the message body but it seems kludgy to
  11581. >me. Is there a more precise form for asking for the message body other than
  11582. >asking for field empty?
  11583. >
  11584. >----------
  11585. >set x to field "" of message i of mailbox inBox of mail folder defaults
  11586. >----------
  11587.  
  11588.     From what I've seen from other's on this list who work with Eudora
  11589. more than I do, this is the way you are supposed to get the body of a
  11590. message.
  11591.  
  11592. >4. I was unable to locate more than just a small sample of Eudora sample
  11593. >AppleScripts such as "Request Eudora Info", "Eudora Notify Controller", and
  11594. >"SendScript@Eudora" on the ftp server at qualcomm. Any other sources for
  11595. >eudora examples?
  11596.  
  11597.     Have you looked in ftp://gaea.kgs.ukans.edu/applescript/scripts? I
  11598. think there might be a couple in there that are Eudora related.
  11599.  
  11600. -Hades
  11601. =========================================================================
  11602. Date:         Wed, 25 May 1994 09:32:33 -0400
  11603. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11604. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11605. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  11606. Subject:      Re: Tao script sample help
  11607. In-Reply-To:  <no.id> from "Steve Kalkwarf" at May 24, 94 04:30:06 pm
  11608.  
  11609. --Steve Kalkwarf wrote:
  11610. >
  11611. >>copy (choose file) to sourceFile
  11612. >>copy (count resources of type "snd " in sourceFile) to resCount
  11613. >>copy (get name of resource number 1 of type "snd " in sourceFile) to
  11614. >resName
  11615. >>tell application "Finder Liaison 1.1"
  11616. >>  create file resName in Folder "Sounds" in Disk "Zot 7.1"
  11617. >>  replacing yes
  11618. >>  Set Type of File resName in Folder "sounds" in Disk "Zot 7.1" To "sfil"
  11619. >>  Set Creator of File resName in Folder "sounds" in Disk "Zot 7.1" To
  11620. >"movr"
  11621. >>end tell
  11622.  
  11623.     Have you tried using direct file references? By this I mean
  11624. replacing the `file resName in Folder "Sounds" in Disk "Zot 7.1"' with
  11625. `file "Zot 7.1:Sounds:" & resName' (without the single quotes). Whenever
  11626. I'm dealing with the Finder I use this style of file referencing
  11627. whenever I can. I like to think it works better, even though it probably
  11628. doesn't for me since I'm using the Scriptable Finder.
  11629. =========================================================================
  11630. Date:         Wed, 25 May 1994 07:01:16 -0800
  11631. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11632. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11633. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  11634. Subject:      Re: Eudora in gaea.kgs.ukans.edu
  11635.  
  11636. >>4. I was unable to locate more than just a small sample of Eudora sample
  11637. >>AppleScripts such as "Request Eudora Info", "Eudora Notify Controller", and
  11638. >>"SendScript@Eudora" on the ftp server at qualcomm. Any other sources for
  11639. >>eudora examples?
  11640. >
  11641. >    Have you looked in ftp://gaea.kgs.ukans.edu/applescript/scripts? I
  11642. >think there might be a couple in there that are Eudora related.
  11643. >
  11644.  
  11645. There seems to be only one Eudora Script in the bunch. Am I incorrect?
  11646.  
  11647. CanvasDemoScripts
  11648. DateConvert
  11649. FileMaker_&_AppleScript
  11650. FileMover1.0....
  11651. FinderScriptin...
  11652. FindScriptable...
  11653. GraphSearch.sit
  11654. Import_to_Pa...
  11655. LEVEL6Scripts...
  11656. MacProjectLib...
  11657. MattsScripts...
  11658. NUDSamples.hqx
  11659. PARSE.sit.hqx
  11660. ProcessFolder...
  11661. QuarkScript...
  11662. rebuild-project...
  11663. ripem-mac-ap... requires RIPEM to open
  11664. Script_Essential...
  11665. sendnewsscript...
  11666. sitcomm-login...
  11667. think6applescr...
  11668. TrashOldMess... Eudora related
  11669.  
  11670. Kee Nethery
  11671.  
  11672. _________________________________________________________________
  11673. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  11674. =========================================================================
  11675. Date:         Wed, 25 May 1994 09:13:20 -0500
  11676. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11677. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11678. From:         Fred Terry <pfterry@LKS.CSI.COM>
  11679. Subject:      Re: Eudora in gaea.kgs.ukans.edu
  11680. In-Reply-To:  Your message of "Wed, 25 May 94 07:01:16 -0900"
  11681.  
  11682. >>>4. I was unable to locate more than just a small sample of Eudora sample
  11683. >>>AppleScripts such as "Request Eudora Info", "Eudora Notify Controller", and
  11684. >>>"SendScript@Eudora" on the ftp server at qualcomm. Any other sources for
  11685. >>>eudora examples?
  11686. >>
  11687. >>    Have you looked in ftp://gaea.kgs.ukans.edu/applescript/scripts? I
  11688. >>think there might be a couple in there that are Eudora related.
  11689. >>
  11690. >
  11691. >There seems to be only one Eudora Script in the bunch. Am I incorrect?
  11692.  
  11693. No, that's probably right. You'd have better luck getting the digests from
  11694.  
  11695. ftp://gaea.kgs.ukans.edu/applescript/docs/digests/
  11696.  
  11697. and scanning them for Eudora references. I seem to recall that there are
  11698. several scripts in them that I have yanked out and placed in the scripts
  11699. directory.
  11700.  
  11701. pf
  11702. =========================================================================
  11703. Date:         Wed, 25 May 1994 10:14:38 -0400
  11704. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11705. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11706. From:         "Edward M. Lutz, Jr" <elutz@TSO.UC.EDU>
  11707. Subject:      Re: AS-L: A Suggestion.
  11708.  
  11709. >As a possible solution, you could have the list sent to you as a daily
  11710. >digest. This would solve the problem of having lots of random messages
  11711. >in your default mailbox. As long as you aren't doing a lot of replying
  11712. >to posts, the digest format is probably one of the best ways to receive
  11713. >a listserv list.
  11714.  
  11715. At the stage I'm at in picking up AppleScript, a digest would make a whole lot
  11716. more sense for me.  How does one go about receiving the list as a digest as
  11717. opposed to individual messages?
  11718.  
  11719. Eddie
  11720. ---------------------------------------------------------------------
  11721. Edward M. Lutz, Jr.                Internet: elutz@tso.uc.edu
  11722. Exodus Software                    AppleLink: EXODUS
  11723. (513) 522-0011
  11724. (513) 522-3958 FAX
  11725. =========================================================================
  11726. Date:         Wed, 25 May 1994 10:21:36 -0500
  11727. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11728. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11729. From:         Colin Enger <colin@ANAMORPHOSIS.USRA.EDU>
  11730. Subject:      Eudora Won't Quit
  11731.  
  11732. I've just started scripting Eudora and I can't get the required suite commands
  11733. "Quit" or "Quit Application" to work.
  11734.  
  11735. Here's the code I've tried:
  11736.  
  11737. (1)
  11738. tell application "Eudora 1.4.2"
  11739.         quit
  11740. end tell
  11741.  
  11742. (2)
  11743. quit application "Eudora 1.4.2"
  11744.  
  11745.  
  11746. Am I doing something radically wrong here?
  11747.  
  11748.  
  11749.  
  11750. Colin Enger - MacVantages Consulting
  11751. ** Business software and training solutions for the Macintosh **
  11752. 703-739-2671
  11753. =========================================================================
  11754. Date:         Wed, 25 May 1994 10:29:33 -0400
  11755. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11756. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11757. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  11758. Subject:      Re: AS-L: A Suggestion.
  11759. In-Reply-To:  <no.id> from "Edward M. Lutz, Jr" at May 25, 94 10:14:38 am
  11760.  
  11761. --Edward M. Lutz, Jr wrote:
  11762. >
  11763. >At the stage I'm at in picking up AppleScript, a digest would make a whole lot
  11764. >more sense for me.  How does one go about receiving the list as a digest as
  11765. >opposed to individual messages?
  11766.  
  11767.     Send mail to listserv@dartmouth.edu, leave the subject line blank
  11768. (if you can't do this, any subject will be ignored). Have only one line
  11769. in the body of the message that reads: set macscrpt digest
  11770.  
  11771. -Hades
  11772. =========================================================================
  11773. Date:         Wed, 25 May 1994 09:04:41 -0600
  11774. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11775. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11776. From:         Kyle Maxwell <maxwell@CC.DIXIE.EDU>
  11777. Subject:      Re: Eudora AS questions
  11778.  
  11779. >2. The following AppleScripts do not return the internet address of the person
  11780. >who sent the message. Field "From:" returns the entire contents of the from
  11781. >field and that does work as a return address but it includes all the extra
  11782. >text identifying the sender such as for me, my name and phone number.
  11783. >Sender returns only the stuff in the From field that I do not want. What I
  11784. >desire is the stuff in the From field that is not what you return as
  11785. >Sender. What would be the proper form for acquiring just the domain style
  11786. >return address of the sender?
  11787. >
  11788. >----------
  11789. >set x to field "From:" of message i of mailbox inBox of mail folder defaults
  11790. >set x to Sender of message i of mailbox inBox of mail folder defaults
  11791. >----------
  11792.  
  11793.  
  11794. Kee, use
  11795.  
  11796. set x to Sender of message i of mailbox inBox of mail folder default
  11797.  
  11798. This will return just the person's address.
  11799.  
  11800. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  11801. "I'd feel worse if I weren't under such heavy sedation..."
  11802. -David St. Hubbins, Spinal Tap
  11803. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  11804. =========================================================================
  11805. Date:         Wed, 25 May 1994 11:14:25 -0400
  11806. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11807. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11808. From:         David Brown <dlb1@SEQUOIA.LLE.ROCHESTER.EDU>
  11809. Subject:      where is grep?
  11810.  
  11811. Someone mentioned there is a grep oxax.  What is the name of the file on
  11812. gaea which contains it?
  11813.  
  11814. --Dave
  11815. =========================================================================
  11816. Date:         Wed, 25 May 1994 10:24:54 -0500
  11817. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11818. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11819. From:         Fred Terry <pfterry@LKS.CSI.COM>
  11820. Subject:      Re: where is grep?
  11821. In-Reply-To:  Your message of "Wed, 25 May 94 11:14:25 EDT"
  11822.  
  11823. Dave,
  11824.  
  11825. >Someone mentioned there is a grep oxax.  What is the name of the file on
  11826. >gaea which contains it?
  11827.  
  11828. You'll find it in the ScriptTools collection of osaxen. It's in
  11829.  
  11830. ftp://gaea.kgs.ukans.edu/applescript/osaxen/ScriptTools1.3.sit.hqx
  11831.  
  11832.  
  11833. pf
  11834. =========================================================================
  11835. Date:         Wed, 25 May 1994 08:35:59 -0800
  11836. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11837. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11838. From:         Mike Cohen <isis@NETCOM.COM>
  11839. Subject:      Re: Slowness
  11840.  
  11841. At  2:22 PM 5/24/94 -0800, Leonard Rosenthol wrote:
  11842. >>I have found that AppleScript is just too slow for many of the things I need
  11843. >>to do.
  11844. >>
  11845. >        I have a feeling it is NOT AppleScript, but instead is two things -
  11846. >one, the application in question and two the System Software you are using.
  11847. >If you run an AppleScript that does not communicate with applications,
  11848. >you will find that it is VERY fast as far as a scripting language goes
  11849. >(though UserTalk is faster - especially the native version ;).   But as
  11850. >soon as the Process Manager and other people's code come into play,
  11851. >anything is fair game...
  11852. >
  11853. When running a script from my own application (I'm currently writing my
  11854. second attachable app), I find that there's a noticable delay the first
  11855. time as the scripting component gets loaded. On subsequent calls, the
  11856. script runs almost as quickly as built-in commands since all AppleEvents
  11857. are sent by the application to itself, which bypasses context switching.
  11858.  
  11859. _______________________________________________________________
  11860. Mike Cohen           | ISIS International
  11861. (818) 788-4747 Voice | isis@netcom.com           | ALink: D6734
  11862. (818) 501-0653 Fax   | NewtonMail, eWorld: MikeC | AOL: MikeC20
  11863. Home Page: file://netcom3.netcom.com/pub/isis/home.html
  11864. =========================================================================
  11865. Date:         Wed, 25 May 1994 10:50:36 -0500
  11866. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11867. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11868. From:         Fred Terry <pfterry@LKS.CSI.COM>
  11869. Subject:      new scripts on gaea
  11870.  
  11871. Paul Farrah has contributed some new scripts for gaea. You'll find them in
  11872.  
  11873. ftp://gaea.kgs.ukans.edu/applescript/scripts/Script_Essentials.hqx
  11874.  
  11875. Here's his description of the scripts.
  11876.  
  11877. The Script Essentials
  11878. Version 1.0
  11879.  
  11880. (C) Copyright 1994 by Paul Farrah.
  11881.  
  11882. The Script Essentials is a collection of Shareware scripts designed to make
  11883. writing and debugging AppleScripts easier. The Script Essentials includes:
  11884.  
  11885.  
  11886. MakeString
  11887. ----------
  11888.  
  11889. Makes records into strings:
  11890.  
  11891.    {x:1, y:2}  -->  "{x:1, y:2}"
  11892.  
  11893. Works great with lists too:
  11894.  
  11895.    {1, 2, 3, 4}  -->  "{1, 2, 3, 4}"
  11896.  
  11897. MakeString converts nearly anything to string so you can display it in a
  11898. dialog box.
  11899.  
  11900.  
  11901. PropLabels
  11902. ----------
  11903.  
  11904. Returns the property labels of a record as a list of strings:
  11905.  
  11906.    {name:"Scriptable Text Editor", version: 1.1}  -->  {"name", "version"}
  11907. =========================================================================
  11908. Date:         Wed, 25 May 1994 08:56:25 -0700
  11909. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11910. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11911. From:         Steve Kalkwarf <kalkwarf@NETCOM.COM>
  11912. Subject:      Re: Tao script sample help
  11913.  
  11914. >--Steve Kalkwarf wrote:
  11915. >>
  11916. >>>copy (choose file) to sourceFile
  11917. >>>copy (count resources of type "snd " in sourceFile) to resCount
  11918. >>>copy (get name of resource number 1 of type "snd " in sourceFile) to
  11919. >>resName
  11920. >>>tell application "Finder Liaison 1.1"
  11921. >>>  create file resName in Folder "Sounds" in Disk "Zot 7.1"
  11922. >>>  replacing yes
  11923. >>>  Set Type of File resName in Folder "sounds" in Disk "Zot 7.1" To "sfil"
  11924. >>>  Set Creator of File resName in Folder "sounds" in Disk "Zot 7.1" To
  11925. >>"movr"
  11926. >>>end tell
  11927. >
  11928. >    Have you tried using direct file references? By this I mean
  11929. >replacing the `file resName in Folder "Sounds" in Disk "Zot 7.1"' with
  11930. >`file "Zot 7.1:Sounds:" & resName' (without the single quotes).
  11931. I hadn't before, but I just now tried. I still get an error "Expected EOL,
  11932. etc. but found application constant or consideration." with the word "yes"
  11933. hilited in my script.
  11934.  
  11935. I think I'd just skip this particular script and go on, but the rest of the
  11936. book builds on this fragment. Sigh....
  11937.  
  11938. Steve
  11939. =========================================================================
  11940. Date:         Wed, 25 May 1994 09:19:42 -0700
  11941. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11942. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11943. From:         Doug Baron <userland@NETCOM.COM>
  11944. Subject:      Re: Net Volumes in Frontier
  11945.  
  11946. >                 Net Volumes in Frontier
  11947. >I would like to test for the availability of a server on the network
  11948. >without neccessarily mounting the volume. Does anyone know of a way to do
  11949. >this from Frontier?
  11950. >
  11951. >Thanks.
  11952. >
  11953. > ------------------------------------------------------------------------
  11954. > Shawn Connelly                          |  Computers are useless. They
  11955. > The Prudential Bank                     |   can only give you answers.
  11956. > Two Concourse Pkwy, #400                |    - Pablo Picasso
  11957. > Atlanta, GA 30328                       |
  11958. > Internet: shawn@prubank.com -or- shawn@cars.com; Phone: 404-604-7939
  11959.  
  11960. Simple: just test for the volume you want, then try ot mount it if it's not
  11961. there:
  11962.  
  11963.         if not file.exists ("servervol:")
  11964.            try
  11965.               file.mountServerVolume ("*:servername:servervol", user, pswd)
  11966.            else
  11967.               << handle failure to mount volume here
  11968.  
  11969. Doug
  11970. =========================================================================
  11971. Date:         Wed, 25 May 1994 10:04:07 -0800
  11972. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11973. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11974. From:         David Lewis <lewis@NETCOM.COM>
  11975. Subject:      Frontier won't load system scrap
  11976.  
  11977. Hi,
  11978.  
  11979. I was trying to write a simple FinderMenu script which would put the path
  11980. to the selected item on the clipboard. I had this as the menu script:
  11981.  
  11982.         copyPathToClipboard (FinderMenu.getSelectionList ())
  11983.  
  11984. and (without all the error control) this in copyPathToClipboard:
  11985.  
  11986.     on copyPathToClipboard (selectionList)
  11987.         Frontier.bringToFront () =ABso I can do the next step
  11988.         clipboard.putValue (string (selectionList[1])) =ABI've verified this
  11989.         Finder.bringToFront ()
  11990.  
  11991. At this point, the Finder's clipboard will remain unchanged. I verified the
  11992. contents of the clipboard in Frontier by putting up a dialog.alert, which
  11993. showed the correct thing. By the way, using appMenu.select ("Finder")
  11994. instead of Finder.bringToFront () makes no difference. Frontier doesn't
  11995. seem to be putting its clipboard contents on the system scrap before doing
  11996. the switch. How can I force this? Thanks.
  11997.  
  11998.         David
  11999.  
  12000. David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  12001. =========================================================================
  12002. Date:         Wed, 25 May 1994 11:56:44 -0500
  12003. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12004. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12005. From:         Vinod Kurup <vvkurup@STUDENTS.WISC.EDU>
  12006. Subject:      Tao script sample help
  12007.  
  12008. >Hi gang!
  12009.  
  12010. Howdy!
  12011.  
  12012. >In BMUG's Tao of AppleScript book there is a sample script on pp94-95 that
  12013. >looks like:
  12014. >
  12015. >>copy (choose file) to sourceFile
  12016. >>copy (count resources of type "snd " in sourceFile) to resCount
  12017. >>copy (get name of resource number 1 of type "snd " in sourceFile) to
  12018. >resName
  12019. >>tell application "Finder Liaison 1.1"
  12020. >>  create file resName in Folder "Sounds" in Disk "Zot 7.1"
  12021. >>  replacing yes
  12022. >>  Set Type of File resName in Folder "sounds" in Disk "Zot 7.1" To "sfil"
  12023. >>  Set Creator of File resName in Folder "sounds" in Disk "Zot 7.1" To
  12024. >"movr"
  12025. >>end tell
  12026.  
  12027. I think there are 2 problems:
  12028.  
  12029. 1) "replacing yes" should be on the end of the previous line, not on a separate
  12030.    line.
  12031.  
  12032. 2) When I tried to run this script with AS1.1 & FinderLiaison1.1, I got an 
  12033. error
  12034.    on the 'create file' line. Try putting parentheses around the file reference
  12035.  
  12036.    create (file resName of Folder "Sounds" in Disk "Zot 7.1") replacing yes
  12037.  
  12038.   The Finder Liaison dictionary says that the Create command expects a
  12039. reference to a file and if you don't include parentheses, it tries to
  12040. incorporate the 'replacing yes' into the file reference. (I think.)
  12041.  
  12042. Good luck,
  12043.  
  12044. Vinod
  12045.  
  12046. --
  12047. LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
  12048. L Vinod Kurup  vvkurup@students.wisc.edu L
  12049. L University of Wisconsin Medical School L
  12050. LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
  12051. =========================================================================
  12052. Date:         Wed, 25 May 1994 11:00:01 -0700
  12053. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12054. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12055. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  12056. Subject:      Re: Frontier won't load system scrap
  12057.  
  12058. At 10:04 5/25/94 -0800, David Lewis wrote:
  12059. >Hi,
  12060. >
  12061. >I was trying to write a simple FinderMenu script which would put the path
  12062. >to the selected item on the clipboard. I had this as the menu script:
  12063. >
  12064. >        copyPathToClipboard (FinderMenu.getSelectionList ())
  12065. >
  12066. >and (without all the error control) this in copyPathToClipboard:
  12067. >
  12068. >    on copyPathToClipboard (selectionList)
  12069. >        Frontier.bringToFront () =ABso I can do the next step
  12070. >        clipboard.putValue (string (selectionList[1])) =ABI've verified thi=
  12071. s
  12072. >        Finder.bringToFront ()
  12073. >
  12074. >At this point, the Finder's clipboard will remain unchanged. I verified the
  12075. >contents of the clipboard in Frontier by putting up a dialog.alert, which
  12076. >showed the correct thing. By the way, using appMenu.select ("Finder")
  12077. >instead of Finder.bringToFront () makes no difference. Frontier doesn't
  12078. >seem to be putting its clipboard contents on the system scrap before doing
  12079. >the switch. How can I force this? Thanks.
  12080.  
  12081. Hmmm...I routinely use sequences like yours, and have never had a problem
  12082. with Finder not *having* the updated clipboard.  And...I have used your
  12083. script successfully just now in a test.  What version of Frontier are you
  12084. running (I'm using 3.0.3 (the Power Mac flaver).
  12085.  
  12086. --John
  12087.  
  12088. --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  12089.   UserLand Software support
  12090. =========================================================================
  12091. Date:         Wed, 25 May 1994 13:09:16 -0700
  12092. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12093. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12094. From:         Greg Kearney <gkearney@CSN.ORG>
  12095. Subject:      clipboard control
  12096.  
  12097. A quick question:
  12098.  
  12099. What is the best way to get stuff (strings) onto and the clipboard as well
  12100. as getting the value of teh clipboard via AppleScript?
  12101.  
  12102. Thanks
  12103.  
  12104. Greg Kearney
  12105.  
  12106. ------------------------------------------------------------------------------
  12107. gkearney@csn.org                        Gregory Kearney
  12108. (307) 266-0570 voice                    Howard Publications Newspaper Group
  12109. (307) 266-0501 fax                      170 Star Lane P.O. Box 80
  12110.                                         Casper, Wyoming 82602
  12111. ------------------------------------------------------------------------------
  12112. =========================================================================
  12113. Date:         Wed, 25 May 1994 14:09:37 -0600
  12114. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12115. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12116. From:         "Desmond K. Mullen" <mulle009@MAROON.TC.UMN.EDU>
  12117. Subject:      Re: Eudora Won't Quit
  12118.  
  12119. >I've just started scripting Eudora and I can't get the required suite commands
  12120. >"Quit" or "Quit Application" to work.
  12121. >
  12122. >Here's the code I've tried:
  12123. >
  12124. >(1)
  12125. >tell application "Eudora 1.4.2"
  12126. >        quit
  12127. >end tell
  12128. >
  12129. >(2)
  12130. >quit application "Eudora 1.4.2"
  12131. >
  12132. >
  12133. >Am I doing something radically wrong here?
  12134.  
  12135.  
  12136.  
  12137. Isn't it "Eudora1.4.2" (no space before the version number)?
  12138.  
  12139. It should be:
  12140.  
  12141. tell application "Eudora1.4.2"
  12142.   quit
  12143. end tell
  12144.  
  12145. -DM
  12146.  
  12147. Desmond K. Mullen - University of Minnesota, Office of Admissions
  12148. mulle009@maroon.tc.umn.edu - 612/625-0824 - Minneapolis, Minnesota, USA
  12149. =========================================================================
  12150. Date:         Wed, 25 May 1994 14:38:27 -0700
  12151. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12152. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12153. From:         Steve Kalkwarf <kalkwarf@NETCOM.COM>
  12154. Subject:      Re: Tao script sample help
  12155.  
  12156. >>In BMUG's Tao of AppleScript book there is a sample script on pp94-95 that
  12157. >>looks like:
  12158. (much verbose, often quoted text removed)
  12159.  
  12160. >I think there are 2 problems:
  12161. >
  12162. >1) "replacing yes" should be on the end of the previous line, not on a 
  12163. separate
  12164. >   line.
  12165. >
  12166. >Try putting parentheses around the file reference:
  12167. >
  12168. >   create (file resName of Folder "Sounds" in Disk "Zot 7.1") replacing yes
  12169.  
  12170. Awesome! It worked! Thank you!
  12171.  
  12172. Steve
  12173. =========================================================================
  12174. Date:         Wed, 25 May 1994 16:56:28 -0600
  12175. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12176. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12177. From:         Frank Concannon <frank-concannon@UOKHSC.EDU>
  12178. Subject:      One more Eudora Sort Mail Question
  12179.  
  12180. Hi Guys
  12181.  
  12182. Below is the script that I would like to use to sort Eudora mail !.
  12183. However when I run it it returns an error fron the "move message" section
  12184. of the script.
  12185.  
  12186. Error Message-
  12187.  
  12188. "Eudora1.4.2 got an error: Can't get message ## of mailbox "In" of mail
  12189. folder etc etc"
  12190.  
  12191. ANY help would be appreciated.
  12192.  
  12193.  
  12194.  
  12195. =46rank C.  (with the bulging In box)
  12196. R&E
  12197.  
  12198. PS      Any way to auto run a script when Mail arrives ?????
  12199.  
  12200.  
  12201.  
  12202. ----------------------------******--------------------------
  12203.  
  12204. property default : ""
  12205. property inBox : "In"
  12206. property asBox : "AppleScript list"
  12207.  
  12208. tell application "Eudora1.4.2"
  12209.         activate
  12210.         set messageCount to count message of mailbox inBox of mail folder
  12211. default
  12212.         repeat with counter from messageCount to 1 by -1
  12213.                 try
  12214.                         set holder to field "Reply" of message counter of
  12215. mailbox inBox of mail folder default
  12216.                 on error
  12217.                         set holder to ""
  12218.                 end try
  12219.                 if holder contains ("Macintosh Scripting Systems" as
  12220. string) then
  12221.                         move message counter of mailbox inBox of mail
  12222. folder default =AC
  12223.                                 InsertHere end of mailbox asBox of mail
  12224. folder "AppleScript"
  12225.                 end if
  12226.         end repeat
  12227. end tell
  12228.  
  12229. ----------------------------******--------------------------
  12230. =========================================================================
  12231. Date:         Wed, 25 May 1994 16:13:09 -0800
  12232. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12233. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12234. From:         David Lewis <lewis@NETCOM.COM>
  12235. Subject:      Re: Frontier won't load system scrap
  12236.  
  12237. >At 10:04 5/25/94 -0800, David Lewis wrote:
  12238. >>Hi,
  12239. >>
  12240. >>I was trying to write a simple FinderMenu script which would put the path
  12241. >>to the selected item on the clipboard. I had this as the menu script:
  12242. >>
  12243. >>        copyPathToClipboard (FinderMenu.getSelectionList ())
  12244. >>
  12245. >>and (without all the error control) this in copyPathToClipboard:
  12246. >>
  12247. >>    on copyPathToClipboard (selectionList)
  12248. >>        Frontier.bringToFront () =ABso I can do the next step
  12249. >>        clipboard.putValue (string (selectionList[1])) =ABI've verified th=
  12250. is
  12251. >>        Finder.bringToFront ()
  12252. >>
  12253. >>At this point, the Finder's clipboard will remain unchanged. I verified th=
  12254. e
  12255. >>contents of the clipboard in Frontier by putting up a dialog.alert, which
  12256. >>showed the correct thing. By the way, using appMenu.select ("Finder")
  12257. >>instead of Finder.bringToFront () makes no difference. Frontier doesn't
  12258. >>seem to be putting its clipboard contents on the system scrap before doing
  12259. >>the switch. How can I force this? Thanks.
  12260. >
  12261. >Hmmm...I routinely use sequences like yours, and have never had a problem
  12262. >with Finder not *having* the updated clipboard.  And...I have used your
  12263. >script successfully just now in a test.  What version of Frontier are you
  12264. >running (I'm using 3.0.3 (the Power Mac flaver).
  12265. >
  12266. =46rontier 3.0.3, System 7.1, System Update 3.0. Duo 230. What does work
  12267. reliably, as it turns out, is to change the menu script to
  12268.  
  12269.         copyPathToClipboard ()
  12270.  
  12271. and the script to
  12272.  
  12273. on copyPathToClipboard ()
  12274.         Frontier.bringToFront ()
  12275.         local (selectionList =3D FinderMenu.getSelectionList ())
  12276.         if sizeOf (selectionList) =3D=3D 1 =AB We'll only accept singular va=
  12277. lues
  12278.                 clipboard.putValue (string (selectionList[1]))
  12279.         else
  12280.                 dialog.alert ("Can=B9t copy multiple selections")
  12281.         Finder.bringToFront ()
  12282.  
  12283. =46or one thing, FinderMenu.getSelectionList seems not to work reliably
  12284. unless Frontier is brought to the front first. This is my first time with
  12285. this verb; all my previous scripts used FinderMenu.visitPaths. Still, I
  12286. *had* verified the local contents of the clipboard before. I'm out of
  12287. ideas, but at least I have a script which works.
  12288.  
  12289.         David
  12290.  
  12291. David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  12292. =========================================================================
  12293. Date:         Wed, 25 May 1994 17:26:00 -0700
  12294. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12295. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12296. From:         Greg Kearney <gkearney@CSN.ORG>
  12297. Subject:      Eudora question
  12298.  
  12299. A question:
  12300.  
  12301. How does one set the body of a message from a script? For example:
  12302.  
  12303. set theText to "hello out there"
  12304. set  body of message ... to thetext
  12305.  
  12306. ------------------------------------------------------------------------------
  12307. gkearney@csn.org                        Gregory Kearney
  12308. (307) 266-0570 voice                    Howard Publications Newspaper Group
  12309. (307) 266-0501 fax                      170 Star Lane P.O. Box 80
  12310.                                         Casper, Wyoming 82602
  12311. ------------------------------------------------------------------------------
  12312. =========================================================================
  12313. Date:         Wed, 25 May 1994 18:07:13 -0800
  12314. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12315. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12316. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  12317. Subject:      Re: Frontier won't load system scrap
  12318.  
  12319. Here's what I use to put a CR delimited list of pathnames on the clipboard
  12320. from FinderMenu.  Note the comment in the middle ;)
  12321.  
  12322. bundle {
  12323.         local(clipStr = "");
  12324.         on visit(path) {
  12325.                 clipStr = clipStr + path + cr};
  12326.         FinderMenu.visitPaths (@visit);
  12327.         Frontier.bringToFront(); + have to do this because of lamo clipboard!
  12328.         clipboard.put('TEXT', clipStr);
  12329.         Finder.bringToFront()}
  12330.  
  12331.  
  12332. Leonard
  12333.  
  12334. -----------------------------------------------------------------------------
  12335. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  12336. Director of Advanced Technology         AppleLink:      MACgician
  12337. Aladdin Systems, Inc.                   GEnie:          MACgician
  12338. =========================================================================
  12339. Date:         Wed, 25 May 1994 18:52:01 -0700
  12340. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12341. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12342. From:         Doug Baron <userland@NETCOM.COM>
  12343. Subject:      Re: Importing in Frontier
  12344.  
  12345. >                 Importing in Frontier
  12346. >I'm writing an importer for Frontier and have been trying to get the
  12347. >exported objects to import without the confirmation dialogs, and
  12348. >displaying every imported object.
  12349. >
  12350. >Does anyone have a technique or script that does this?
  12351. >
  12352.  
  12353. I've you've ever upgraded Frontier, or have run an Frontier "Installer"
  12354. script, you already have example-ware for this. The "Upgrader" and
  12355. "Installer" scripts are just fancy desktop scripts. I'd suggest dissecting
  12356. an "Installer" script, since the recent "Upgrader" scripts maintain logs
  12357. and have a lot of extra logic that you wouldn't normally need.
  12358.  
  12359. To see the contents of an Installer script, hold down the command key while
  12360. you launch it.
  12361.  
  12362. Doug
  12363. =========================================================================
  12364. Date:         Wed, 25 May 1994 18:52:07 -0700
  12365. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12366. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12367. From:         Doug Baron <userland@NETCOM.COM>
  12368. Subject:      Re: Overhead of function calls in Frontier?
  12369.  
  12370. >Has anybody ever done performance timings for various actions in
  12371. >Frontier?  I'd really like to know the overhead of looking up
  12372. >an item in the Object Database versus doing a function call.
  12373. >
  12374. >For example, suppose I define this table entry:
  12375. >
  12376. >people.DCM.randomString = "This is a random string"
  12377. >
  12378. >and use this entry in the following way:
  12379. >
  12380. >msg(people.DCM.randomString + "...Yes, it is.")
  12381. >
  12382. >Will that be faster than if I defined a function as follows:
  12383. >
  12384. >on produceARandomString()
  12385. >        return ("This is a random string.")
  12386. >
  12387. >and called it like this:
  12388. >
  12389. >msg(produceARandomString() + "...Yes, it is")
  12390. >
  12391. >I'd certainly expect the table lookup to be faster, but by how much?
  12392. >
  12393.  
  12394. David,
  12395.  
  12396. Looking up the data is usually faster. The reason: when you do a function
  12397. call, the reference to the script itself goes through the same kind of
  12398. lookup as does a data reference. So in one case you have a single data
  12399. lookup, in the other you have a data lookup plus a script execution.
  12400.  
  12401. It's possible, depending on search paths, that executing a local script
  12402. could be as fast, or faster, than referencing a piece of global data. Local
  12403. object references are faster than global ones. However, it should be noted
  12404. that all of these actions are quite fast. If you're super-sensitive to
  12405. performance, I suggest doing your own timing tests, using clock.ticks() and
  12406. plenty of iterations.
  12407.  
  12408. Doug
  12409. =========================================================================
  12410. Date:         Wed, 25 May 1994 19:35:43 -0800
  12411. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12412. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12413. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  12414. Subject:      Re: One more Eudora Sort Mail Question
  12415.  
  12416. >property default : ""
  12417. >property inBox : "In"
  12418. >property asBox : "AppleScript list"
  12419. >
  12420. >tell application "Eudora1.4.2"
  12421. >        activate
  12422. >        set messageCount to count message of mailbox inBox of mail folder
  12423. >default
  12424.  
  12425. I think I remember that I had to change it from default to something else
  12426. (I chose defaults) because (I'm fuzzy here) default was a reserved word
  12427. with some other meaning? I did change it to defaults and it does work for
  12428. me so ...
  12429.  
  12430. Kee Nethery
  12431.  
  12432. _________________________________________________________________
  12433. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  12434. =========================================================================
  12435. Date:         Wed, 25 May 1994 23:03:51 CDT
  12436. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12437. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12438. From:         Tom Donovan <donovan@COVIS.NWU.EDU>
  12439. Subject:      Re: Eudora question
  12440.  
  12441. >A question:
  12442. >
  12443. >How does one set the body of a message from a script? For example:
  12444. >
  12445. >set theText to "hello out there"
  12446. >set  body of message ... to thetext
  12447. >
  12448. >------------------------------------------------------------------------------
  12449. >gkearney@csn.org                        Gregory Kearney
  12450. >(307) 266-0570 voice                    Howard Publications Newspaper Group
  12451. >(307) 266-0501 fax                      170 Star Lane P.O. Box 80
  12452. >                                        Casper, Wyoming 82602
  12453. >------------------------------------------------------------------------------
  12454.  
  12455. Greg,
  12456.  
  12457. Here's the entire script necessary to create an outgoing message:
  12458.  
  12459. tell application "Eudora1.4.2"
  12460.    set theMessage to make ObjectClass message InsertHere end of mailbox "Out"
  12461.       of mail folder ""  --continuation of line above
  12462.    set field "To" of theMessage to theRecipient
  12463.    set field "Subject" of theMessage to theSubject
  12464.    set field "" of theMessage to theMessageText
  12465.    queue theMessage QueueType 1
  12466. end tell
  12467.  
  12468. --Tom
  12469.  
  12470. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  12471. Tom Donovan           "The city is a place where a small boy, as he walks
  12472. Support Specialist     through it, may see something that will tell him what
  12473. CoVis Project          he wants to do his whole life."
  12474. Northwestern Univ.
  12475.                                                     --Louis I. Kahn
  12476. E-mail: donovan@covis.nwu.edu
  12477. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  12478. =========================================================================
  12479. Date:         Wed, 25 May 1994 21:31:55 -0700
  12480. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12481. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12482. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  12483. Subject:      Re: clipboard control
  12484.  
  12485. >A quick question:
  12486. >
  12487. >What is the best way to get stuff (strings) onto and the clipboard as well
  12488. >as getting the value of teh clipboard via AppleScript?
  12489.  
  12490. The Scripting Addition from Jon Pugh ("Jons Commands") does the trick [at
  12491. least it SETS the clipboard...Script Editor is in one of its moods right
  12492. now, and only shows a blank window when I try to look at the Dictionary for
  12493. Jons Commands, so I can't double check getting the clipboard.]
  12494.  
  12495.    --John
  12496.  
  12497. --
  12498. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  12499. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  12500. =========================================================================
  12501. Date:         Thu, 26 May 1994 00:36:06 -0500
  12502. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12503. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12504. From:         Manuel Veloso <veloso@NETCOM.COM>
  12505. Subject:      Re: MountVolume OSAX
  12506.  
  12507. Well, I wrote the thing and I can't remeber. I think you can leave off the
  12508. zone, and it will use the default one.
  12509.  
  12510. Or, use the zone "*", as that's the current zone.
  12511.  
  12512. Manuel
  12513.  
  12514. >I have this in my scripting additions folder, and I can't seem to find its
  12515. >origin.  Is is part of the GTQ library? If so, it is not documented.
  12516. >
  12517. >In any case, how do you mount a volume without a zone? Giving a zone name of 
  12518. ""
  12519. >does not work.
  12520. =========================================================================
  12521. Date:         Wed, 25 May 1994 21:51:38 -0800
  12522. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12523. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12524. From:         Malcolm Pradhan <pradhan@CAMIS.STANFORD.EDU>
  12525. Subject:      Re: clipboard control [AS]
  12526.  
  12527. > The Scripting Addition from Jon Pugh ("Jons Commands") does the trick
  12528. > [at least it SETS the clipboard
  12529.  
  12530. It does indeed. Here is a very handy script, for use with the OSA menu and
  12531. Jon's commands, that gets a list of the items selected in the Finder and
  12532. puts their pathnames in the clipboard -- great for users of MPW, MacPerl
  12533. and AS.
  12534.  
  12535.  Many thanks to Mr. Leonard Rosenthol and Mr. Jon Pugh!
  12536.  
  12537.  Regards,
  12538.  Malcolm
  12539.  
  12540. -------------------------
  12541.  
  12542. set fitems to (finder selection)
  12543. set i to the number of items of fitems
  12544.  
  12545. if i > 0 then
  12546.     set flist to ""
  12547.         repeat with n from 1 to i
  12548.             set flist to flist & (item n of fitems as string) & return
  12549.         end repeat
  12550.     set the clipboard to flist
  12551. end if
  12552. =========================================================================
  12553. Date:         Thu, 26 May 1994 00:59:49 EDT
  12554. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12555. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12556. From:         Atul Butte <ATUL@BROWNVM.BROWN.EDU>
  12557. Subject:      Re: The GRRREAT TCP-IP Scripting Addition
  12558.  
  12559. >>Is there any way to check if a host name exists in a shorter space of time
  12560. >>than the several minutes it takes (while hanging your computer) on a tcp
  12561. >>connect command? Ie a tcp check host command, which would return a boolean
  12562. >>if there is a host of that name.
  12563.  
  12564. Yes, i've written the TCP NAME TO ADDRESS command already... i'm fixing some
  12565. other problems with the iso8859-1 translation and writing new Frontmost
  12566. sample applications and I'll release the package soon...
  12567. (life tends to get busy at the end of a semester... :-)
  12568.  
  12569. -- Atul
  12570. atul_butte@brown.edu
  12571. =========================================================================
  12572. Date:         Wed, 25 May 1994 18:52:21 +1100
  12573. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12574. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12575. From:         Michael Norris <michael.norris@STONEBOW.OTAGO.AC.NZ>
  12576. Subject:      Checking for a files existence
  12577.  
  12578. Is there anyway in AppleScript to check whether a file exists on a volume?
  12579. Is there anyway to coerce a file reference into an alias, or some other way
  12580. of using an alias, without necessarily needing that file to be present
  12581. before saving??
  12582.  
  12583. Cheers,
  12584.  
  12585. Michael Norris,
  12586. CAL Consultant,
  12587. University of Otago,
  12588. PO Box 56,
  12589. Dunedin,
  12590. New Zealand.
  12591. ---------------------
  12592. Ph:(03) 479-7705
  12593. E-Mail: michael.norris@stonebow.otago.ac.nz
  12594. =========================================================================
  12595. Date:         Wed, 25 May 1994 13:23:32 EST
  12596. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12597. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12598. From:         "Aaron E. McClennen" <Aaron_E._McClennen@HABITAT.ORG>
  12599. Organization: Habitat for Humanity International
  12600. Subject:      Re: Net Volumes in Frontier
  12601.  
  12602. >I would like to test for the availability of a server on the network
  12603. >without neccessarily mounting the volume. Does anyone know of a way to do
  12604. >this from Frontier?
  12605.  
  12606. Shawn et al,
  12607.  
  12608. Shawn sorry about the blank message I sent you. I hit "send" by mistake.
  12609.  
  12610. To search for a net volume you can embed an attempt to mount the volume in a 
  12611. try
  12612. statement. Like this
  12613.  
  12614. try { G to mount other machine to see if it is running
  12615.         file.mountservervolume(The_network_path,"","");
  12616.         file.unmoutvolume(The_volume_name);
  12617.         return(true)}
  12618. else {
  12619.         return(false)}
  12620.  
  12621. I haven't debugged the code, but it is based of some working code.
  12622. This still mounts the volume, but not for very long.
  12623.  
  12624. Aaron_E._McClennen@habitat.org
  12625.  
  12626. Habitat for Humanity International
  12627. "Building houses with GodUs people in need."
  12628. =========================================================================
  12629. Date:         Thu, 26 May 1994 08:33:41 -0500
  12630. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12631. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12632. From:         David Myers <dcmyers@ACCESS.DIGEX.NET>
  12633. Subject:      Re: Overhead of function calls in Frontier?
  12634.  
  12635. Doug Baron writes:
  12636.  
  12637. >David,
  12638. >
  12639. >Looking up the data is usually faster. The reason: when you do a function
  12640. >call, the reference to the script itself goes through the same kind of
  12641. >lookup as does a data reference. So in one case you have a single data
  12642. >lookup, in the other you have a data lookup plus a script execution.
  12643.  
  12644.  
  12645. Good point.  I often forget how central the Object Database is to
  12646. *everything* in Frontier, even function calls.  But presumably there
  12647. is a set of "kernel" functions which are not executed through scripts??
  12648.  
  12649. -David.
  12650.  
  12651.  
  12652. ____________________________________________________
  12653.  
  12654. David C. Myers
  12655. dcmyers@access.digex.net
  12656. =========================================================================
  12657. Date:         Thu, 26 May 1994 09:17:31 -0600
  12658. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12659. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12660. From:         "Desmond K. Mullen" <mulle009@MAROON.TC.UMN.EDU>
  12661. Subject:      Re: One more Eudora Sort Mail Question
  12662.  
  12663. >PS      Any way to auto run a script when Mail arrives ?????
  12664.  
  12665. Just have a script always running - you can use an idle handler and have it
  12666. "return" every two minutes or so and check for mail.
  12667.  
  12668. Use the "set messageCount to count message of mailbox..." line you had, but
  12669. do it TWICE - once (before you check for mail) to find out the number of
  12670. messages in the box and once (after you check for mail) to find out how
  12671. many new ones have arrived. You can use the "connect" command to check for
  12672. mail.
  12673.  
  12674. So it would look something like this:
  12675.  
  12676. -------- part of script ----------
  12677. set oldMessageCount to count message of mailbox...
  12678. connect
  12679. set newMessageCount to count message of mailbox...
  12680. set numberOfNewMessages to (newMessageCount - oldMessageCount)
  12681. if numberOfNewMessages > 0 then
  12682. ...
  12683. -------- part of script ----------
  12684.  
  12685. -DM
  12686.  
  12687. Desmond K. Mullen - University of Minnesota, Office of Admissions
  12688. mulle009@maroon.tc.umn.edu - 612/625-0824 - Minneapolis, Minnesota, USA
  12689. =========================================================================
  12690. Date:         Thu, 26 May 1994 17:00:02 +0200
  12691. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12692. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12693. From:         Jan Erik Mostr|m <jem@SM.LUTH.SE>
  12694. Subject:      Re: One more Eudora Sort Mail Question
  12695.  
  12696. Hi
  12697.  
  12698. I new to this list (of today infact) so I'll hope you excuse me if this is
  12699. a common question.
  12700.  
  12701. I saw the interesting subject line above (read: I've tried to this myself
  12702. but failed ... but I'm new to AppleScript so that doesn't say much) and I
  12703. wonder if there is someone who has a script that can sort a mailbox. If so
  12704. could you share it ?
  12705.  
  12706.                         jem
  12707. =========================================================================
  12708. Date:         Thu, 26 May 1994 10:31:39 -0500
  12709. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12710. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12711. From:         Fred Terry <pfterry@LKS.CSI.COM>
  12712. Subject:      Re: One more Eudora Sort Mail Question
  12713. In-Reply-To:  Your message of "Thu, 26 May 94 17:00:02 +0100"
  12714.  
  12715. Jan,
  12716.  
  12717. >I new to this list (of today infact) so I'll hope you excuse me if this is
  12718. >a common question.
  12719. >
  12720. >I saw the interesting subject line above (read: I've tried to this myself
  12721. >but failed ... but I'm new to AppleScript so that doesn't say much) and I
  12722. >wonder if there is someone who has a script that can sort a mailbox. If so
  12723. >could you share it ?
  12724.  
  12725. Why don't you get the up to the minute digest from the listserv, then you'll
  12726. have all of the interesting discussions on Eudora that have occurred this
  12727. month. :-)
  12728.  
  12729. Send the message
  12730.  
  12731. ind macscrpt
  12732.  
  12733. to the listserv@dartmouth.edu address. It will return a list of the files
  12734. available. Look for the digest file you are interested in (LOG9405 in this
  12735. case), and then send the message
  12736.  
  12737. get  MACSCRPT LOG9405
  12738.  
  12739. You can get more information about the various listserv commands by sending
  12740. the message
  12741.  
  12742. info refcard
  12743.  
  12744. Hope this helps.
  12745.  
  12746. pf
  12747.  
  12748.  
  12749. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  12750. Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
  12751. =========================================================================
  12752. Date:         Thu, 26 May 1994 17:46:31 +0200
  12753. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12754. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12755. From:         Jan Erik Mostr|m <jem@SM.LUTH.SE>
  12756. Subject:      Re: One more Eudora Sort Mail Question
  12757.  
  12758. >Why don't you get the up to the minute digest from the listserv, then you'll
  12759. >have all of the interesting discussions on Eudora that have occurred this
  12760. >month. :-)
  12761.  
  12762. I tried to do something like that using the database system, but I couldn't
  12763. understand the syntax at first, and when I finally got something that the
  12764. listserv accepted I didn't understand what it meant 8-)
  12765.  
  12766. So I gave up ...
  12767.  
  12768. >
  12769. >get  MACSCRPT LOG9405
  12770. >
  12771.  
  12772. Thanks, I've just sent the message and I'm waiting for the reply.
  12773.  
  12774.                         jem
  12775. =========================================================================
  12776. Date:         Thu, 26 May 1994 11:12:03 -0600
  12777. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12778. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12779. From:         Frank Concannon <frank-concannon@UOKHSC.EDU>
  12780.  
  12781. get  MACSCRPT LOG9405
  12782. =========================================================================
  12783. Date:         Thu, 26 May 1994 11:30:16 -0600
  12784. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12785. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12786. From:         Frank Concannon <frank-concannon@UOKHSC.EDU>
  12787.  
  12788. Sheepish hello
  12789.  
  12790.         I do apologise for the screw up with the listserver request.  I
  12791. just was not thinking when I selected the e-mail address.
  12792.  
  12793.         I suppose this just compounds the offence!!!!!.
  12794.  
  12795. Boy Fred that was the fastest response I have ever had to an e-mail message
  12796. - of any sort :-)
  12797.  
  12798. Frank C.
  12799. =========================================================================
  12800. Date:         Thu, 26 May 1994 12:59:17 -0400
  12801. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12802. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12803. From:         John Schettino <js12@GTE.COM>
  12804. Subject:      Re: Opening a literal file with Script Tools 1.3
  12805.  
  12806. >Is there a way to coerce a literal file name to what ever the result of
  12807. >"choose file" returns?  Open file appears to want the type resulting from a
  12808. >choose file (or equivalent).  Heres the example from Script Tools:
  12809. >    set paramFile to choose file with prompt "Select params.good ..." of
  12810. >type "TEXT"
  12811. >    set refNum to open file paramFile for reading
  12812. >I wanted to do:
  12813. >    set paramFileName to ":System Folder:Preferences:Send Attach Preferences"
  12814. >    set paramFile to open file paramFileName for reading
  12815.  
  12816. You were real close! This works just fine:
  12817. set paramFile to open file alias paramFileName for reading
  12818.  
  12819. note the 'alias', tis the magic part.
  12820.  
  12821. - john
  12822.  
  12823. -----------------------------------------
  12824. js12@gte.com             GTE Laboratories
  12825. John Schettino                Waltham, MA
  12826. =========================================================================
  12827. Date:         Thu, 26 May 1994 12:32:58 -0500
  12828. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12829. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12830. From:         Carl Steadman <carl@CDTL.UMN.EDU>
  12831. Subject:      Re: One more Eudora Sort Mail Question
  12832.  
  12833. >>PS      Any way to auto run a script when Mail arrives ?????
  12834. >
  12835. >Just have a script always running - you can use an idle handler and have it
  12836. >"return" every two minutes or so and check for mail.
  12837. >
  12838.  
  12839. You can also use NotifyMail, Scott Gruby's shareware program which uses a
  12840. finger connection for immediate notification of new mail. You can have
  12841. NotifyMail either notify Eudora, which could then notify your script, or
  12842. you could have it run any application when it receives new mail, such as an
  12843. AppleScript applet.
  12844.  
  12845. It's at
  12846. <ftp://mac.archive.umich.edu/mac/system.extensions/init/notifymail2.30.cpt.hqx>
  12847. and the mac-archive mirrors.
  12848.  
  12849. Carl
  12850.  
  12851. _________________________________________
  12852.   Carl Steadman  carl@cdtl.umn.edu
  12853.   Center for the Development of Technological Leadership
  12854.   Tel 612.626.9750  Fax 612.624.7510
  12855. =========================================================================
  12856. Date:         Thu, 26 May 1994 13:06:56 -0600
  12857. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12858. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12859. From:         Frank Concannon <frank-concannon@UOKHSC.EDU>
  12860.  
  12861. Fellow Script Users
  12862.  
  12863.        Having finally gotten the Eudora Mail Sorting Script to work
  12864. correctly. I thought that I would post some observations and questions.
  12865.  
  12866. Observarion number 1) the reason that I could not get the damm thing to
  12867. work in the first place seems to be that I was unable to use nested folder
  12868. structure for my archive. ie I created a folder within the Eudora folder
  12869. (the one in the system) and in this I created my various archive mailboxes.
  12870. However the script would not work with this setup. When I moved the
  12871. archives to the default folder level everything works fine.
  12872.  
  12873. Question Number 1) How do I specify a mail folder other than the default 
  12874. folder.
  12875.  
  12876.  
  12877.         Since this script is basically plagerized from several ideas of
  12878. regular contributors to this list I can only hope that the authors can
  12879. recognize their own contributions and take the following observations
  12880.  
  12881. Observarion number 2) counting backwards through the list is vital in that
  12882. counting forwards will only move half of the messages at any on run of the
  12883. script. The reasons are obvious once you have beaten on it for a few days.
  12884.  
  12885.  
  12886. I include the corrected script below which now works fine. You are welcome
  12887. to build upon it. (However if you solve the Nested folder problem I would
  12888. appreciate an e-mail. I'm going back to automating my lab.!!!!!)
  12889.  
  12890. Question Number 2) Anybody have a way of doing spell checking on Eudora ???
  12891. Question Number 3) Anybody on this list from Ireland
  12892.  
  12893. Bye for now
  12894.  
  12895. Frank C.
  12896. R&E
  12897.  
  12898.  
  12899. --------------------*********-----------------------
  12900.  
  12901. property default : ""
  12902. property inBox : "In"
  12903. property asBox : "MacScript"
  12904.  
  12905. tell application "Eudora1.4.2"
  12906.         activate
  12907.         set messageCount to count message of mailbox inBox of mail folder
  12908. default
  12909.         repeat with counter from messageCount to 1 by -1
  12910.                 try
  12911.                         set holder to field "Reply" of message counter of
  12912. mailbox inBox of mail folder default
  12913.                 on error
  12914.                         set holder to ""
  12915.                 end try
  12916.                 if holder contains ("Macintosh Scripting Systems" as
  12917. string) then
  12918.                         move message counter of mailbox inBox of mail
  12919. folder default InsertHere end of mailbox asBox of mail folder default
  12920.                 end if
  12921.         end repeat
  12922. end tell
  12923.  
  12924. --------------------*********-----------------------
  12925. =========================================================================
  12926. Date:         Thu, 26 May 1994 12:06:20 -0600
  12927. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12928. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12929. From:         Kyle Maxwell <maxwell@CC.DIXIE.EDU>
  12930. Subject:      Re: One more Eudora Sort Mail Question
  12931.  
  12932. >Hi Guys
  12933. >
  12934. >Below is the script that I would like to use to sort Eudora mail !.
  12935. >However when I run it it returns an error fron the "move message" section
  12936. >of the script.
  12937. >
  12938. >Error Message-
  12939. >
  12940. >"Eudora1.4.2 got an error: Can't get message ## of mailbox "In" of mail
  12941. >folder etc etc"
  12942. >
  12943. >ANY help would be appreciated.
  12944. >
  12945. >
  12946. >
  12947. >=46rank C.  (with the bulging In box)
  12948. >R&E
  12949. >
  12950. >PS      Any way to auto run a script when Mail arrives ?????
  12951. >
  12952. >
  12953. >
  12954. >----------------------------******--------------------------
  12955. >
  12956. >property default : ""
  12957. >property inBox : "In"
  12958. >property asBox : "AppleScript list"
  12959. >
  12960. >tell application "Eudora1.4.2"
  12961. >        activate
  12962. >        set messageCount to count message of mailbox inBox of mail folder
  12963. >default
  12964. >        repeat with counter from messageCount to 1 by -1
  12965. >                try
  12966. >                        set holder to field "Reply" of message counter of
  12967. >mailbox inBox of mail folder default
  12968. >                on error
  12969. >                        set holder to ""
  12970. >                end try
  12971. >                if holder contains ("Macintosh Scripting Systems" as
  12972. >string) then
  12973. >                        move message counter of mailbox inBox of mail
  12974. >folder default =AC
  12975. >                                InsertHere end of mailbox asBox of mail
  12976. >folder "AppleScript"
  12977. >                end if
  12978. >        end repeat
  12979. >end tell
  12980. >
  12981. >----------------------------******--------------------------
  12982.  
  12983.  
  12984. My best advice to you would be:  Buy Eudora 2.0.2.  I spent three weeks
  12985. noodling around with Eudora scripting (spare time, not constantly - <grin>)
  12986. and threw the whole script away when Eudora 2.0.2 showed up yesterday.
  12987. v2.0.2's filter is much faster and more reliable than AppleScripting it,
  12988. and yes, you can set it up to sort incoming mail.
  12989.  
  12990. (This, of course, only applies to sorting mail.  I still use scripts for
  12991. other functions.)
  12992.  
  12993. Kyle
  12994.  
  12995. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  12996. "I'd feel worse if I weren't under such heavy sedation..."
  12997. -David St. Hubbins, Spinal Tap
  12998. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  12999. =========================================================================
  13000. Date:         Thu, 26 May 1994 13:43:31 -0500
  13001. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13002. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13003. From:         Fred Terry <pfterry@LKS.CSI.COM>
  13004. Subject:      Re: Your message of Thu, 26 May 1994 11:30:16 -0600
  13005. In-Reply-To:  Your message of "Thu, 26 May 94 11:30:16 MDT"
  13006.  
  13007. Frank,
  13008.  
  13009. >Boy Fred that was the fastest response I have ever had to an e-mail message
  13010. >- of any sort :-)
  13011.  
  13012. No offence, just usual administratively reminder. Everyone on the list is so
  13013. well-behaved that I have to jump at any chance to remind people of things. :-)
  13014.  
  13015. Well, sitting at a machine connected to the net is something like driving in a
  13016. convertible with the wind whistling past your ears.
  13017.  
  13018. pf
  13019. =========================================================================
  13020. Date:         Thu, 26 May 1994 17:22:52 EDT
  13021. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13022. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13023. From:         "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
  13024. Subject:      MacScript WWW Server
  13025.  
  13026. I don't know if I mentioned this before (memory is the first to go in my
  13027. family) so here goes:
  13028.  
  13029. I have created a WWW server for our MacScripting list and its associated
  13030. archives. Try it out! I am very open to suggestions for
  13031. additions/improvements.
  13032.  
  13033. The URL is:
  13034. http://www.dartmouth.edu/Pages/macscripting/macscripting-home.html
  13035.  
  13036. (Or if you have the ability, you can also click <A
  13037. href="http://www.dartmouth.edu/Pages/macscripting/macscripting-home.html">here
  13038. </a>.)
  13039.  
  13040. -A
  13041. =========================================================================
  13042. Date:         Thu, 26 May 1994 17:53:08 -0600
  13043. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13044. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13045. From:         Kyle Maxwell <maxwell@CC.DIXIE.EDU>
  13046. Subject:      Re: MacScript WWW Server
  13047.  
  13048. Thanks for the Web site info.  It's pretty cool.  I couldn't get FTP work,
  13049. though...
  13050. Oh, check out MY www site!  http://www.sci.dixie.edu/strataInc/home.html
  13051.  
  13052. Andy Warhol was wrong.  In the future, we won't all be famous for fifteen
  13053. minutes.  We'll all have our own web home page!  ;-)
  13054.  
  13055. Kyle
  13056.  
  13057. >I have created a WWW server for our MacScripting list and its associated
  13058. >archives. Try it out! I am very open to suggestions for
  13059. >additions/improvements.
  13060. >
  13061. >The URL is:
  13062. >http://www.dartmouth.edu/Pages/macscripting/macscripting-home.html
  13063.  
  13064.  
  13065. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  13066. "I'd feel worse if I weren't under such heavy sedation..."
  13067. -David St. Hubbins, Spinal Tap
  13068. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  13069. =========================================================================
  13070. Date:         Thu, 26 May 1994 18:56:20 U
  13071. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13072. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13073. From:         Steve Zellers <steve_zellers@INETLINK.BERKSYS.COM>
  13074. Subject:      LISTSERV SIGNOFF MACSCRPT
  13075.  
  13076. LISTSERV SIGNOFF MACSCRPT
  13077. =========================================================================
  13078. Date:         Thu, 26 May 1994 18:58:37 U
  13079. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13080. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13081. From:         Steve Zellers <steve_zellers@INETLINK.BERKSYS.COM>
  13082. Subject:      LISTSERV SET DIG
  13083.  
  13084. LISTSERV SET DIG
  13085. =========================================================================
  13086. Date:         Thu, 26 May 1994 18:58:14 U
  13087. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13088. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13089. From:         Steve Zellers <steve_zellers@INETLINK.BERKSYS.COM>
  13090. Subject:      LISTSERV SUB MACSCRPT
  13091.  
  13092. LISTSERV SUB MACSCRPT
  13093. =========================================================================
  13094. Date:         Thu, 26 May 1994 21:06:08 -0800
  13095. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13096. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13097. From:         Mike Cohen <isis@NETCOM.COM>
  13098. Subject:      Re: MacScript WWW Server
  13099.  
  13100. At  5:53 PM 5/26/94 -0600, Kyle Maxwell wrote:
  13101. >Thanks for the Web site info.  It's pretty cool.  I couldn't get FTP work,
  13102. >though...
  13103. >Oh, check out MY www site!  http://www.sci.dixie.edu/strataInc/home.html
  13104. >
  13105. To add to this thread, check out mine ;-)
  13106. file://netcom3.netcom.com/pub/isis/home.html. I plan to add a link to the
  13107. MacScript home page to it.
  13108.  
  13109. _______________________________________________________________
  13110. Mike Cohen           | ISIS International
  13111. (818) 788-4747 Voice | isis@netcom.com           | ALink: D6734
  13112. (818) 501-0653 Fax   | NewtonMail, eWorld: MikeC | AOL: MikeC20
  13113. Home Page: file://netcom3.netcom.com/pub/isis/home.html
  13114. =========================================================================
  13115. Date:         Fri, 27 May 1994 00:05:58 CDT
  13116. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13117. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13118. From:         Tom Donovan <donovan@COVIS.NWU.EDU>
  13119. Subject:      E-mail address formats/Eudora/Reg Expressions
  13120.  
  13121. Scripters,
  13122.  
  13123. I have been playing with the Regular Expression osax from Script Tools 1.31
  13124. to find a way to pull just the e-mail address from the various header
  13125. fields in a Eudora message, and am having my first experience with regular
  13126. expressions.
  13127.  
  13128.  
  13129. I have seen "From" fields in 3 forms, and the regular expression I came up
  13130. with seems to be able to pull the e-mail address from all three:
  13131.  
  13132.         From: user@machine.host.domain
  13133.  
  13134.         From: Real Name <user@machine.host.domain>
  13135.  
  13136. and     From: user@machine.host.domain (Real Name)
  13137.  
  13138.  
  13139. My question is, are there any other formats that I should be aware of?
  13140. What about legal characters?
  13141.  
  13142. Thanks in advance for any info (or pointers to info) you can lend.
  13143.  
  13144. --Tom
  13145.  
  13146. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  13147. Tom Donovan           "The city is a place where a small boy, as he walks
  13148. Support Specialist     through it, may see something that will tell him what
  13149. CoVis Project          he wants to do his whole life."
  13150. Northwestern Univ.
  13151.                                                     --Louis I. Kahn
  13152. E-mail: donovan@covis.nwu.edu
  13153. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  13154. =========================================================================
  13155. Date:         Thu, 26 May 1994 22:08:55 -0800
  13156. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13157. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13158. From:         David Lewis <lewis@NETCOM.COM>
  13159. Subject:      Frontier commercial developer's suite bug
  13160.  
  13161. Hi,
  13162.  
  13163. I just tried to use the commercial developer's suite to build a glue table
  13164. for JPEGView 3.3. It has two commands, "open" and "slideShow", which
  13165. produce very long lines, and the commercial suite mis-handles them. In the
  13166. case of "open" I was able to recover the lost text since Frontier didn't
  13167. truncate it until it tried to compile. I could use a continuation line. In
  13168. the case of "slideShow" however, the invocation line is too long and the
  13169. formal parameters are truncated in the middle so I have no way of finding
  13170. out what it was supposed to be. Help?
  13171.  
  13172.         David
  13173.  
  13174. David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  13175. =========================================================================
  13176. Date:         Thu, 26 May 1994 22:54:19 -0700
  13177. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13178. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13179. From:         Doug Baron <userland@NETCOM.COM>
  13180. Subject:      Re: Overhead of function calls in Frontier?
  13181. In-Reply-To:  <199405261233.FAA26075@mail.netcom.com> from "David Myers" at May
  13182.               26, 94 08:33:41 am
  13183.  
  13184. >
  13185. > Good point.  I often forget how central the Object Database is to
  13186. > *everything* in Frontier, even function calls.  But presumably there
  13187. > is a set of "kernel" functions which are not executed through scripts??
  13188. >
  13189.  
  13190. Yes, but the script object containing the kernel reference must be
  13191. located in any case. See the script behind file.exist for an example of a
  13192. kernel call.
  13193.  
  13194. Doug
  13195. =========================================================================
  13196. Date:         Thu, 26 May 1994 23:04:29 -0700
  13197. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13198. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13199. From:         Doug Baron <userland@NETCOM.COM>
  13200. Subject:      Re: Frontier commercial developer's suite bug
  13201. In-Reply-To:  <199405270515.WAA06557@mail2.netcom.com> from "David Lewis" at
  13202.               May 26, 94 10:08:55 pm
  13203.  
  13204. > >
  13205. > I just tried to use the commercial developer's suite to build a glue table
  13206. > for JPEGView 3.3. It has two commands, "open" and "slideShow", which
  13207. > produce very long lines, and the commercial suite mis-handles them. In the
  13208. > case of "open" I was able to recover the lost text since Frontier didn't
  13209. > truncate it until it tried to compile. I could use a continuation line. In
  13210. > the case of "slideShow" however, the invocation line is too long and the
  13211. > formal parameters are truncated in the middle so I have no way of finding
  13212. > out what it was supposed to be. Help?
  13213. >
  13214. >         David
  13215. >
  13216. > David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  13217. >
  13218.  
  13219. David,
  13220.  
  13221. This is rare; I've never heard of this limit being reached before.
  13222.  
  13223. Fortunately, the 'aete' importing is done by a script:
  13224. commercial.parseAete. In that script, you'll see this pair of lines:
  13225.  
  13226.    op.setLineText (onStatement)
  13227.    op.insert (returnStatement, right)
  13228.  
  13229. For work around the problem, you'll need to add some extra logic here,
  13230. testing string.length(onStatement), and trundating if necessary.
  13231. Something like this:
  13232.  
  13233.    if string.length (onStatement) > 255
  13234.        for i = 255 downto 1
  13235.            if onStatement [i] == ' '
  13236.                op.setlinetext (string.mid (onStatement, 1, i) + '\')
  13237.                op.insert (string.delete (onStatement, 1, i + 1), right)
  13238.  
  13239. This assumes that two lines will do the trick. The same logic would have
  13240. to be applied to the returnStatement.
  13241.  
  13242. Warning: untested code. Good luck!
  13243.  
  13244. Doug
  13245. =========================================================================
  13246. Date:         Thu, 26 May 1994 23:45:14 -0700
  13247. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13248. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13249. From:         Christopher Allen <consensus@NETCOM.COM>
  13250. Organization: Consensus Development Corporation, San Francisco, CA USA
  13251. Subject:      Everyday AppleScript(tm) Contest!
  13252.  
  13253. EVERDAY APPLESCRIPT(tm) CONTEST
  13254. ===============================
  13255.  
  13256.                   Your AppleScript could win $750!
  13257.               In the ~Everyday AppleScript(tm)~ Contest!
  13258.  
  13259.                               **Prizes:**
  13260.                  Best AppleScript(tm) Script $750
  13261.                  Best Scriptable Application $500
  13262.                  Best Scripting Utility $250
  13263.                  Best Scripting Addition (OSAX) $250
  13264.                  Best Scripting Hack $250
  13265.  
  13266.                                **plus**
  13267.  
  13268.       Copies of ~Everyday AppleScript(tm)~, MacHack(tm) '94 CD-ROM,
  13269.              and Free Time on America Online, and More!
  13270.  
  13271.  
  13272.   **Sponsored by:**
  13273.   Christopher Allen, author of the ~Everyday AppleScript(tm)~ book
  13274.   from Addison-Wesley and Forum Leader the Mac Developers Forum on
  13275.   America Online.
  13276.  
  13277.   **Rules:**
  13278.  
  13279.     * Your submission must be Public Domain, Freeware, or Shareware
  13280.  
  13281.     * You must grant us the right to publish your submission
  13282.  
  13283.     * You must sign our Submission Form & Permission Agreement
  13284.  
  13285.  
  13286.   **Deadline:**
  13287.   All submissions must be recieved before June 17th (by mail),
  13288.                                 **or**
  13289.   Submitted to Christopher Allen in person at MacHack(tm) '94 by 11 P.M.
  13290.   on June 24th (same deadline as MacHack(tm) contest).
  13291.  
  13292.  
  13293.   **Winners:**
  13294.   Winners will be will be announced after the MacHack(tm) Awards on June
  13295.   25th during MacHack(tm) (June 23-25, Ann Arbor, Michigan)
  13296.  
  13297.  
  13298.   **More Info:**
  13299.   Contact Christopher Allen at 415-647-6383 or email to Internet
  13300.   <consensus@netcom.com> or America Online 'AFL Allen'.
  13301.  
  13302.   MacHack is a trademark of Expotech, Inc. (not affiliated with
  13303.   The MacHax(tm) Group.) AppleScript is a trademark of Apple
  13304.   Computer, Inc.
  13305.  
  13306.  
  13307. SUBMISSION FORM & PERMISSION AGREEMENT
  13308. --------------------------------------
  13309.   Please fill out the following submission form and permission agreement:
  13310.  
  13311.   **Name of the Software:**__________________________________________________.
  13312.    (i.e., Submitted Work)
  13313.  
  13314.   **Submitter(s):**__________________________________________________________.
  13315.  
  13316.   **The Submitted Work is** [ ] Public Domain, [ ] Freeware,
  13317.   or [ ] Shareware at $___________ [ ] per User or [ ] per __________________.
  13318.  
  13319.   **Type:**
  13320.   [ ] AppleScript Script, [ ] Frontier Script, [ ] HyperTalk Script,
  13321.   [ ] Other OSA Scripting Language _____________, [ ] OSAX,
  13322.   [ ] Scripting Utility, [ ] Scriptable Application, or [ ] Other: __________.
  13323.  
  13324.   **Requirements:**
  13325.   [ ] AppleScript v___, [ ] Frontier v___, [ ] QuickKeys v___, [ ] OSA Menu,
  13326.   [ ] HyperCard v___, [ ] Other Scripting __________, [ ] Scriptable Finder,
  13327.   [ ] FaceSpan (FrontMost), [ ] Other Scripting Utility _____________________,
  13328.   [ ] Scripting Addition (OSAX):_____________________________________________,
  13329.   [ ] AppleScriptable Application ___________________________________________,
  13330.   [ ] Other _________________________________________________________________.
  13331.  
  13332.   **Short Description** (not to exceed 25 words, may be edited by
  13333.   Publishers for consistency):
  13334.   ___________________________________________________________________________
  13335.   ___________________________________________________________________________
  13336.  
  13337.   **Long Description** (not to exceed 100 words, may be edited by
  13338.   Publishers for consistency):
  13339.   ___________________________________________________________________________
  13340.   ___________________________________________________________________________
  13341.   ___________________________________________________________________________
  13342.   ___________________________________________________________________________
  13343.  
  13344.   The Submitter(s), grant nonexclusive all language world rights in the
  13345.   Submitted Work to the following companies (Publishers):
  13346.  
  13347.   * Addison-Wesley Publishing Company, for use in a book by Christopher
  13348.     Allen titled Everyday AppleScript(tm);
  13349.  
  13350.   * Expotech, Inc., for use in a MacHack(tm) CD-ROM;
  13351.  
  13352.   * Mac Developers Forum, for use in the Mac Developers Forum on
  13353.     America Online;
  13354.  
  13355.   * Consensus Development Corporation, for use in a future
  13356.     AppleScript(tm) CD-ROM.
  13357.  
  13358.   The nonexclusive rights granted to the Publishers include all
  13359.   editions of the above listed works, and all possible subsidiary and
  13360.   promotional uses in connection with those works.
  13361.  
  13362.   A notice & credit line may be required by the Submitter(s) before
  13363.   inclusion in any of the above works:  [ ] No additional notice or
  13364.   credit lines is required; or [ ] Addison-Wesley Publishing Company,
  13365.   Consensus Development Corporation, Expotech, Inc., and the Mac
  13366.   Developers Forum are required to print the following notice & credit
  13367.   line(s) (not to exceed 50 words):
  13368.   ___________________________________________________________________________
  13369.   ___________________________________________________________________________
  13370.   ___________________________________________________________________________
  13371.   ___________________________________________________________________________
  13372.  
  13373.   The Submitter(s) warrant that the Submitter(s) are the sole owner of
  13374.   the copyright in the Submitted Work, the that Submitted Work does not
  13375.   infringe any other copyright; and that the Submitters have the right
  13376.   to enter into this agreement without impairing or violating any other
  13377.   rights or obligations. The Submitter(s) will indemnify the Publishers
  13378.   and those to whom the Publishers extend these warranties and this
  13379.   indemnity against loss, damage, or expense (including reasonable
  13380.   attorneys fees) arising out of breach or alleged breach of these
  13381.   warranties.
  13382.  
  13383.   In compensation for these rights, warranties, and indemnification,
  13384.   the Submitter(s) will be compensated by the Publishers solely by
  13385.   whatever publicity may result from publishing it in the above works.
  13386.  
  13387.   In addition, if the Submitted Work is accepted by Addision-Wesley
  13388.   Publishing Corporation for inclusion in Everyday AppleScript(tm), the
  13389.   Submitter(s) will receive one (1) copy of the book Everyday
  13390.   AppleScript(tm).
  13391.  
  13392.  
  13393.   Signed:   __________________________________________
  13394.   Name:     __________________________________________
  13395.   Date:     __________________________________________
  13396.   Title:    __________________________________________
  13397.   Company:  __________________________________________
  13398.   Address:  __________________________________________
  13399.             __________________________________________
  13400.  
  13401.  
  13402.   **Please sign and date this form and return it to:**
  13403.  
  13404.             Everyday AppleScript(tm) Contest
  13405.             c/o Consensus Development Corporation
  13406.             4104-24th Street #419
  13407.             San Francisco, CA 94114-3615
  13408.  
  13409. $$
  13410.  
  13411. ------------------------------------------------------------------------
  13412. ..Christopher Allen                  Consensus Development Corporation..
  13413. ..<consensus@netcom.com>                         4104-24th Street #419..
  13414. ..                                        San Francisco, CA 94114-3615..
  13415. ..                                        o415/647-6383  f415/647-6384..
  13416. ..Mosaic/World-Wide-Web Front Door:                                   ..
  13417. ..ftp://netcom7.netcom.com/pub/consensus/www/ConsensusFrontDoor.html  ..
  13418. =========================================================================
  13419. Date:         Fri, 27 May 1994 00:24:31 PDT
  13420. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13421. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13422. From:         Glenn Austin <gla-aux!glenn@SKINNER.CS.UOREGON.EDU>
  13423. Organization: The Pit Lane
  13424. Subject:      Re: E-mail address formats/Eudora/Reg Expressions
  13425.  
  13426. In Regards to your letter <9405270505.AA10948@tour.covis.nwu.edu>:
  13427. > I have seen "From" fields in 3 forms, and the regular expression I came up
  13428. > with seems to be able to pull the e-mail address from all three:
  13429. >
  13430. >         From: user@machine.host.domain
  13431. >
  13432. >         From: Real Name <user@machine.host.domain>
  13433. >
  13434. > and     From: user@machine.host.domain (Real Name)
  13435. >
  13436. >
  13437. > My question is, are there any other formats that I should be aware of?
  13438. > What about legal characters?
  13439.  
  13440. There are two more "acceptable" forms:
  13441.  
  13442.         site!user@hostsite.domain
  13443.  
  13444. and
  13445.  
  13446.         user%site.UUCP@hostsite.domain
  13447.  
  13448. Both are UUCP conventions for contacting those who are tied to the
  13449. net, but where some of the hosts don't have up-to-date map information.
  13450. For example, these two addresses are equivalent:
  13451.  
  13452.         gla-aux!glenn@skinner.cs.uoregon.edu
  13453.  
  13454. and
  13455.  
  13456.         glenn%gla-aux.uucp@skinner.cs.uoregon.edu
  13457.  
  13458. Of course, if all the routing sites updated their maps, then these two 
  13459. addresses
  13460. would be equivalent to:
  13461.  
  13462.         glenn@gla-aux.uucp
  13463.  
  13464. (I know of this from personal experience -- it took almost 18 months for
  13465. the change in my host location from the SF bay area to Oregon to propagate
  13466. throughout the net.  My old host was still getting mail addressed to me
  13467. with no place to send it!  And there are *STILL* some hosts which don't know
  13468. that I'm located off of skinner, even 3 years after the mapping was changed...)
  13469.  
  13470. // Glenn L. Austin
  13471. // Macintosh Wizard and Auto Racing Driver
  13472. // Usenet:  glenn@gla-aux.uucp or ...skinner!gla-aux!glenn
  13473. =========================================================================
  13474. Date:         Fri, 27 May 1994 17:51:06 +1000
  13475. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13476. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13477. From:         Danny Thomas <D.Thomas@VTHRC.UQ.EDU.AU>
  13478. Subject:      Re: E-mail address formats/Eudora/Reg Expressions
  13479.  
  13480. >I have seen "From" fields in 3 forms, and the regular expression I came up
  13481. >with seems to be able to pull the e-mail address from all three:
  13482. >
  13483. >        From: user@machine.host.domain
  13484. >
  13485. >        From: Real Name <user@machine.host.domain>
  13486. >
  13487. >and     From: user@machine.host.domain (Real Name)
  13488. >
  13489. >
  13490. >My question is, are there any other formats that I should be aware of?
  13491. >What about legal characters?
  13492.  
  13493. for fun you can try X400 addresses. These do sometimes arise in practice.
  13494. Obviously rfc822 is a good place to look, and probably worth looking at p90
  13495. and 180 of Marshall Rose's "The Internet Message" Prentice Hall ISBN
  13496. 0-13-092941-7. Depends how seriously you want to do this. Probably 99% will
  13497. be handled by the above, so is occasional manual decision-making OK?
  13498.  
  13499. cheers,
  13500. Danny Thomas
  13501.  
  13502. PS as a minor quibble, machine.host.domain is *not* correct. You probably
  13503. meant host.domain (machine == host), but MX records allow use of an
  13504. arbitrary domain on the RHS of '@'. In fact I'm not alone in strongly
  13505. discouraging use of explicit host names.
  13506. =========================================================================
  13507. Date:         Fri, 27 May 1994 09:54:13 +0100
  13508. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13509. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13510. From:         Johan Solve <johan.solve@ITN.HH.SE>
  13511. Subject:      Re: (sorting eudora mail)
  13512.  
  13513. > Observarion number 2) counting backwards through the list is vital in that
  13514. > counting forwards will only move half of the messages at any on run of the
  13515. > script. The reasons are obvious once you have beaten on it for a few days.
  13516.  
  13517. I count upwards in my sorting script, which is a great advantage since the
  13518. order of the inbox is maintained after the sort. Further, the sorter can
  13519. handle mail that arrives during the sort.
  13520. To accomplish this is easy, just use a counter that you increase only when
  13521. you _don't_ move a message. This way, you'll be sure that the script will
  13522. sort all incoming mail, including mail that may have arrived after the sort
  13523. begun.
  13524. You can use a "repeat until counter < mailcount" loop, just make sure you
  13525. refresh mailcount on every loop.
  13526.  
  13527. _______________________________________________________________________
  13528.           "
  13529.    JOHAN SOLVE                   Department of Science and Technology
  13530.    <johan.solve@itn.hh.se>       Halmstad University, Sweden
  13531. =========================================================================
  13532. Date:         Fri, 27 May 1994 09:40:29 18000
  13533. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13534. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13535. From:         Ron Fondo <rfondo@FREENET.SCRI.FSU.EDU>
  13536. Subject:      set macscrpt digest
  13537.  
  13538. --
  13539. .
  13540.  
  13541. .............................................................
  13542. .                                                           .
  13543. .    Ron Fondo                                              .
  13544. .    (work)                           (home)                .
  13545. . rfondo@homes.com                 rfondo@freenet.fsu.edu   .
  13546. . rfondo@rdesparc.vistachrome.com  rfondo@freenet.fl.us     .
  13547. . rfondo@tapbbs.tlh.fl.us              dq465@po.cwru.edu    .
  13548. .                               dq465@cleveland.freenet.edu .
  13549. .............................................................
  13550. =========================================================================
  13551. Date:         Fri, 27 May 1994 09:52:58 -0600
  13552. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13553. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13554. From:         Kyle Maxwell <maxwell@CC.DIXIE.EDU>
  13555. Subject:      Re: (sorting eudora mail)
  13556.  
  13557. Not to beat this particular subject to death, but I've tried both methods
  13558. listed below.  Counting upwards does have advantages, but the loop you have
  13559. to use to make it work eats up clock cycles like you wouldn't believe.  On
  13560. my 840 av, it takes an average of three minutes to sort my incoming mail
  13561. using this method.  Admittedly, I get a few hundred messages a day.
  13562. However, counting backwards takes less than half the time, and Eudora 2.0.2
  13563. sorts it all for me almost instantly.
  13564.  
  13565. Just a thought...
  13566. Kyle
  13567.  
  13568.  
  13569. >> Observarion number 2) counting backwards through the list is vital in that
  13570. >> counting forwards will only move half of the messages at any on run of the
  13571. >> script. The reasons are obvious once you have beaten on it for a few days.
  13572. >
  13573. >I count upwards in my sorting script, which is a great advantage since the
  13574. >order of the inbox is maintained after the sort. Further, the sorter can
  13575. >handle mail that arrives during the sort.
  13576. >To accomplish this is easy, just use a counter that you increase only when
  13577. >you _don't_ move a message. This way, you'll be sure that the script will
  13578. >sort all incoming mail, including mail that may have arrived after the sort
  13579. >begun.
  13580. >You can use a "repeat until counter < mailcount" loop, just make sure you
  13581. >refresh mailcount on every loop.
  13582. >
  13583. >_______________________________________________________________________
  13584. >          "
  13585. >   JOHAN SOLVE                   Department of Science and Technology
  13586. >   <johan.solve@itn.hh.se>       Halmstad University, Sweden
  13587.  
  13588. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  13589. Kyle Maxwell, 3d animator, interface designer, all-around kinda guy.
  13590. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  13591. =========================================================================
  13592. Date:         Fri, 27 May 1994 11:24:01 -0600
  13593. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13594. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13595. From:         Chuck Shotton <cshotton@OAC.HSC.UTH.TMC.EDU>
  13596. Subject:      Named parameters in AppleEvent replies
  13597.  
  13598. How do you access the named parameters (keywords) returned as part of a
  13599. standard reply event from an AppleScript? As far as I can tell, you can
  13600. only access the direct parameter in the reply by default. If an application
  13601. returns other data in the reply, associated with keyword parameters, what
  13602. is the AppleScript syntax for accessing this data?
  13603.  
  13604. (Please cc: me on any responses. I only get the digest.)
  13605.  
  13606. --_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_\_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
  13607. Chuck Shotton                             \
  13608. Assistant Director, Academic Computing     \   "Shut up and eat your
  13609. U. of Texas Health Science Center Houston   \    vegetables!!!"
  13610. cshotton@oac.hsc.uth.tmc.edu  (713) 794-5650 \
  13611. _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-\-_-_-_-_-_-_-_-_-_-_-_-_-
  13612. =========================================================================
  13613. Date:         Fri, 27 May 1994 09:40:34 -0700
  13614. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13615. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13616. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  13617. Subject:      Re: Named parameters in AppleEvent replies
  13618.  
  13619. >How do you access the named parameters (keywords) returned as part of a
  13620. >standard reply event from an AppleScript? As far as I can tell, you can
  13621. >only access the direct parameter in the reply by default. If an application
  13622. >returns other data in the reply, associated with keyword parameters, what
  13623. >is the AppleScript syntax for accessing this data?
  13624.  
  13625. Aside from error handling stuff, you don't access reply parameters other
  13626. than the direct object of the reply message ('----' parameter).
  13627. AppleScript doesn't do that.  [Frontier does, using the complexEvent ()
  13628. verb.]
  13629.  
  13630. So one can "AppleScript-proof" an application by designing multi-parameter
  13631. replies.
  13632.  
  13633. The alternative is to return a record whose items are the various values,
  13634. or a list of the values.  [There's little physical difference between a
  13635. record and a list anyhow.]
  13636.    --John
  13637.  
  13638. --
  13639. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  13640. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  13641. =========================================================================
  13642. Date:         Fri, 27 May 1994 12:52:02 -0500
  13643. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13644. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13645. From:         Fred Terry <pfterry@LKS.CSI.COM>
  13646. Subject:      junk mail; please ignore
  13647.  
  13648. Do you open junk mail at home, too? :-)
  13649.  
  13650.  
  13651. Sorry, I'm just trying to generate an error on the list by posting a message.
  13652.  
  13653.  
  13654. pf
  13655. =========================================================================
  13656. Date:         Fri, 27 May 1994 17:41:35 -0500
  13657. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13658. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13659. From:         Igor Livshits <igorl@UIUC.EDU>
  13660. Subject:      Eudora's save command?
  13661.  
  13662. Howdy,
  13663.  
  13664. Has anyone successfully sent a save command to Eudora? If so, may I please
  13665. see an example?
  13666.  
  13667. Thank you, Igor
  13668.  
  13669. _____
  13670. NCSA-UIUC, e: igorl@uiuc.edu, w: (217) 244-0424;  Have a Coke and a smile :)
  13671. =========================================================================
  13672. Date:         Fri, 27 May 1994 23:03:18 -0700
  13673. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13674. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13675. From:         Jon Pugh <jonpugh@NETCOM.COM>
  13676. Subject:      Re: (sorting eudora mail)
  13677.  
  13678. >Not to beat this particular subject to death, but I've tried both methods
  13679. >listed below.  Counting upwards does have advantages, but the loop you have
  13680. >to use to make it work eats up clock cycles like you wouldn't believe.  On
  13681. >my 840 av, it takes an average of three minutes to sort my incoming mail
  13682. >using this method.  Admittedly, I get a few hundred messages a day.
  13683. >However, counting backwards takes less than half the time, and Eudora 2.0.2
  13684. >sorts it all for me almost instantly.
  13685.  
  13686. Not wanting to continue beating on the subject, but the time killer here is
  13687. the move from the front of the list.  Eudora has to move the whole mailbox
  13688. down (well, it's up on screen) to replace the hole left by the moved text.
  13689. Moving off the back is simply an EOF change and ~much~ faster.
  13690.  
  13691. It's not AppleScript that is slow.  It's the process mangler and the
  13692. idiosyncrasies of the various scriptable programs that slow scripts down.
  13693.  
  13694. Jon
  13695. =========================================================================
  13696. Date:         Sat, 28 May 1994 01:53:13 -0500
  13697. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13698. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13699. From:         "William M. Porter" <WMPORTER@JETSON.UH.EDU>
  13700. Subject:      OSA Menu
  13701.  
  13702. Sorry for bothering the list with what I suspect is a FAQ, but can
  13703. somebody tell me more about Leonard Rosenthal's OSA Menu? I have heard
  13704. that it will place a "Scripts" menu in my menubar, so that I can have
  13705. access to AppleScripts in my System folder. Is it commercial software? If
  13706. it's shareware or freeware, is it available on the 'net, and if so where?
  13707.  
  13708. Thanks.
  13709.  
  13710. Will Porter / University of Houston
  13711. wmporter@jetson.uh.edu
  13712. =========================================================================
  13713. Date:         Fri, 27 May 1994 21:15:00 GMT
  13714. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13715. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13716. From:         Jay Hebert <jayh@LAISON.W8HD.ORG>
  13717. Organization: L'AISON - Beverly Hills, Michigan
  13718. Subject:      Upload
  13719.  
  13720. Hi all...
  13721.  
  13722. For the fun of it, I sent a little script for SITComm and FirstClass to
  13723. gaea:/incoming.  I presume it won't be there long, and will end up in
  13724. /applescript/scripts. (Right Fred?)
  13725.  
  13726. Description:
  13727. Basically, it's for people who, like me, receive their list mail at a
  13728. FirstClass site. (Yeah yeah, I could use the GUI, and the CLUI is terrible,
  13729. but, with the right aliases, mailreading in the clui can be fast.) It moves a
  13730. given range of messages to a folder - configurable on the fly.
  13731.  
  13732. Not pretty, not even worth worrying about retaining copyright, etc. Do with
  13733. it what you will!
  13734.  
  13735. Regards,
  13736. Jay Hebert
  13737. jayh@laison.w8hd.org (L'AISON)
  13738. RedJam/TBX@infoport.com (The Birmingham Exchange)
  13739.  
  13740. --
  13741. ==========================jayh@laison.w8hd.org=========================
  13742.   Metallica,||   When a man lies he murders / Some part of the world
  13743.    To Live  ||These are the pale deaths which / Men miscall their lives
  13744.      is     ||     All this I cannot bear / To witness any longer
  13745.    To Die   ||     Cannot the kingdom of salvation / Take me home
  13746. =======================================================================
  13747. 1)  These opinions are mine.-==- 2)  Sending me mail gives me
  13748. I'm too self-interested to  -==- permission to reproduce it in any form
  13749. speak for anyone else.      -==- unless otherwise explicitly stated.
  13750. =========================================================================
  13751. Date:         Sun, 29 May 1994 17:10:08 +1100
  13752. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13753. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13754. From:         Michael Norris <michael.norris@STONEBOW.OTAGO.AC.NZ>
  13755. Subject:      Notification OSAX
  13756.  
  13757. Hi. Basically I'm looking for a notification OSAX. I realise that "request
  13758. attention" is out there, but this has a few problems:
  13759.  
  13760. 1) When called from FrontMost, the small icon doesn't flash in the app menu.
  13761. 2) It ain't called asynchronously (though you can specify a timeout).
  13762.  
  13763. So here's what I need:
  13764.  
  13765. 1) the icon to flash
  13766. 2) an asynchronous call, so that the notification is posted, then
  13767. immediately life carries on as usual without having to switch to the
  13768. application first.
  13769.  
  13770. Cheers,
  13771.  
  13772. Michael Norris,
  13773. CAL Consultant,
  13774. University of Otago,
  13775. PO Box 56,
  13776. Dunedin,
  13777. New Zealand.
  13778. ---------------------
  13779. Ph:(03) 479-7705
  13780. E-Mail: michael.norris@stonebow.otago.ac.nz
  13781. =========================================================================
  13782. Date:         Mon, 30 May 1994 02:10:30 -0400
  13783. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13784. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13785. From:         Marc Lavallee <r27764@ER.UQAM.CA>
  13786. Subject:      KeyQuencer is great!
  13787.  
  13788. I invite all fellow scripters to download "KeyQuencer 1.0" at Sumex. It is
  13789. a new macro scripting environment from Alessandro Levi Montalcini. Very
  13790. small and efficient, it can replace AppleScript and Quickeys for the
  13791. average scripting and automation needs. Here is a sample of the docs:
  13792.  
  13793. "KeyQuencer is a very useful control panel that lets you perform complex
  13794. tasks with one keystroke. I wrote it because I wasn't satisfied with the
  13795. commercial macro engines currently available, as they require lots and
  13796. lots of memory and often fill it with less than useful stuff. KeyQuencer
  13797. uses a scripting approach; it can't watch your steps to learn new
  13798. sequences as other commercial packages do. This requires a bit more work
  13799. when you define a new sequence, but the final impact of KeyQuencer on your
  13800. system is a lot smaller in terms of memory usage and processor time."
  13801.  
  13802. Also, it can be linked to Hypercard and Applescript and extended with
  13803. modules written in C.
  13804.  
  13805. It may be not as good as AppleScript and/or Quickeys, but it is at least
  13806. a great shareware.
  13807.  
  13808.  Marc Lavallee
  13809.  r27764@er.uqam.ca
  13810. =========================================================================
  13811. Date:         Mon, 30 May 1994 11:29:55 -0700
  13812. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13813. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13814. From:         Greg Kearney <gkearney@CSN.ORG>
  13815. Subject:      Activating a scrip from Eudora
  13816.  
  13817. Hello All here's what I need to do:
  13818.  
  13819. When Eudora recives mail I want ti to run a scrip. I have the script
  13820. running just fine I just need to make sure it runs each time eudora gets
  13821. new mail. Any help out there?
  13822.  
  13823. Thanks
  13824.  
  13825. ------------------------------------------------------------------------------
  13826. gkearney@csn.org                        Gregory Kearney
  13827. (307) 266-0570 voice                    Howard Publications Newspaper Group
  13828. (307) 266-0501 fax                      170 Star Lane P.O. Box 80
  13829.                                         Casper, Wyoming 82602
  13830. ------------------------------------------------------------------------------
  13831. =========================================================================
  13832. Date:         Mon, 30 May 1994 11:08:17 -0700
  13833. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13834. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13835. From:         Mike Cohen <isis@NETCOM.COM>
  13836. Subject:      Re: Activating a scrip from Eudora
  13837. In-Reply-To:  <199405301723.KAA08184@netcom.com> from "Greg Kearney" at May 30,
  13838.               94 11:29:55 am
  13839.  
  13840. >
  13841. > Hello All here's what I need to do:
  13842. >
  13843. > When Eudora recives mail I want ti to run a scrip. I have the script
  13844. > running just fine I just need to make sure it runs each time eudora gets
  13845. > new mail. Any help out there?
  13846. >
  13847. > Thanks
  13848. >
  13849. > -----------------------------------------------------------------------------
  13850. -
  13851. > gkearney@csn.org                        Gregory Kearney
  13852. > (307) 266-0570 voice                    Howard Publications Newspaper Group
  13853. > (307) 266-0501 fax                      170 Star Lane P.O. Box 80
  13854. >                                         Casper, Wyoming 82602
  13855. > -----------------------------------------------------------------------------
  13856. -
  13857. >
  13858. By sending Eudora a "Please Notify" event with a reference to the application
  13859. that should receive the notification, you can have it run an AppleScript saved
  13860. as an applet or tell Frontier to run a script.
  13861.  
  13862. BTW, Casper sounds like a great place ;-)
  13863.  
  13864. --
  13865. Mike Cohen           | ISIS International
  13866. (818) 788-4747 Voice | isis@netcom.com           | ALink: D6734
  13867. (818) 501-0653 Fax   | NewtonMail, eWorld: MikeC | AOL: MikeC20
  13868. Home Page: file://ftp.netcom.com/pub/isis/home.html
  13869. =========================================================================
  13870. Date:         Mon, 30 May 1994 13:42:08 -0500
  13871. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13872. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13873. From:         "Desmond K. Mullen" <mulle009@MAROON.TC.UMN.EDU>
  13874. Subject:      Re: Activating a scrip from Eudora
  13875.  
  13876. >Hello All here's what I need to do:
  13877. >
  13878. >When Eudora recives mail I want ti to run a scrip. I have the script
  13879. >running just fine I just need to make sure it runs each time eudora gets
  13880. >new mail. Any help out there?
  13881.  
  13882.  
  13883.  
  13884. Have your script stay open and have _it_ tell Eudora to check for mail at
  13885. whatever interval you like:
  13886.  
  13887.  
  13888. on idle
  13889.   tell application "Eudora1.4.2"
  13890.     -- check how many messages are in the in box
  13891.     connect
  13892.     -- check again how many message are in the in box (subtract this new
  13893.     -- count from the previous count).
  13894.     -- if there are any new messages then process them as you wish
  13895.   end tell
  13896. return 120 --(seconds)
  13897. end idle
  13898.  
  13899.  
  13900. You can also send an AppleEvent to Eudora telling it what application to
  13901. notify on the arrival of new mail. Read the AE dictionary in Eudora for
  13902. details. The message just needs to be sent once, so you can send the
  13903. message out of the ScriptEditor for simplicity's sake.
  13904.  
  13905.  
  13906. -DM
  13907.  
  13908. Desmond K. Mullen - University of Minnesota, Office of Admissions
  13909. mulle009@maroon.tc.umn.edu - 612/625-0824
  13910. =========================================================================
  13911. Date:         Mon, 30 May 1994 15:39:51 -0500
  13912. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13913. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13914. From:         "James E. Mitchell" <mitchell@CBIS.ECE.DREXEL.EDU>
  13915. Subject:      Running Applescript from w/i FileMaker Pro
  13916.  
  13917. A neophyte's question.
  13918.  
  13919. I wish to use Applescript to add some functions to FileMaker Pro (FMP).
  13920. Specifically, my first goal is to take fields, calculate values and place
  13921. the results in another field (different calculations for different
  13922. records). Sounds simple. I'm pretty sure I can do it if I create a script
  13923. or applet in Script Editor then run it to control FMP, but that's not the
  13924. way I wish to work. I want the user to open FMP, then have things happen
  13925. transparently to them that are impossible solely within FMP. Now the
  13926. question:
  13927.  
  13928. Can I run Applescripts in a manner transparent to the user from within FMP
  13929. that affect FMP?
  13930. I managed to make it "open"  and run an applet by sending an "open
  13931. document" apple event using a FMP script, but had to respond to the "do you
  13932. want to run?" dialog box - most annoying.
  13933.  
  13934. Ideally what I want to do is put the applescript text in a FMP field, grab
  13935. that text as part of a FMP script and run it as an Applescript script. It
  13936. seems as though that should be possible but my attempts to do so haven't
  13937. worked so far.
  13938.  
  13939. Any suggestions of how to do this and/or who to talk to would be most
  13940. appreciated.
  13941.  
  13942. --
  13943. James E. Mitchell - Associate Dean for Undergraduate Affairs
  13944. Curtis 261 - College of Engineering - Drexel University - Phil. PA 19104
  13945. (215) 895-1374     James.Mitchell@CoE.drexel.edu
  13946.  
  13947.  
  13948.  
  13949. ************************************************************************
  13950. *                      James E. Mitchell                               *
  13951. *   Associate Dean for Undergraduate Affairs * College of Engineering  *
  13952. *   Curtis-261, Drexel University * Philadelphia PA, 19104             *
  13953. *                  (215) 895-1374 * Fax (215) 895-5863                 *
  13954. *                  James.Mitchell@CoE.drexel.edu                       *
  13955. ************************************************************************
  13956. =========================================================================
  13957. Date:         Mon, 30 May 1994 12:51:10 -0700
  13958. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13959. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13960. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  13961. Subject:      Re: Running Applescript from w/i FileMaker Pro
  13962.  
  13963. >A neophyte's question.
  13964. >
  13965. >I wish to use Applescript to add some functions to FileMaker Pro (FMP).
  13966. >Specifically, my first goal is to take fields, calculate values and place
  13967. >the results in another field (different calculations for different
  13968. >records). Sounds simple. I'm pretty sure I can do it if I create a script
  13969. >or applet in Script Editor then run it to control FMP, but that's not the
  13970. >way I wish to work. I want the user to open FMP, then have things happen
  13971. >transparently to them that are impossible solely within FMP. Now the
  13972. >question:
  13973. >
  13974. >Can I run Applescripts in a manner transparent to the user from within FMP
  13975. >that affect FMP?
  13976. >I managed to make it "open"  and run an applet by sending an "open
  13977. >document" apple event using a FMP script, but had to respond to the "do you
  13978. >want to run?" dialog box - most annoying.
  13979.  
  13980. You can eliminate that "do you want to run?" thing either at the time you
  13981. save the script application (a checkbox in the Standard File dialog is
  13982. Script Editor, or later anytime it is shown (File menu command???).
  13983.  
  13984. >Ideally what I want to do is put the applescript text in a FMP field, grab
  13985. >that text as part of a FMP script and run it as an Applescript script. It
  13986. >seems as though that should be possible but my attempts to do so haven't
  13987. >worked so far.
  13988. >
  13989. >Any suggestions of how to do this and/or who to talk to would be most
  13990. >appreciated.
  13991.  
  13992. Another option would be to run Leonard Rosenthol's "OSA Menu" extension
  13993. (widely available).  You get an iconic script menu to the left of the help
  13994. menu.  This has an area for scripts which are always available, and an area
  13995. for scripts associated with the active application.  You can put your
  13996. script (saved as a compiled script) in there.
  13997.  
  13998. What you want is "attachability".  FileMaker came out long before that was
  13999. possible (in other than very pre-release form, if that), so it's not
  14000. surprising that FileMaker doesn't have it.  The technology is (now)
  14001. available to trigger AppleScript (or Frontier, or ...) scripts when a
  14002. button is pressed, a word of text is double-clicked, or pretty much any UI
  14003. action the application wants to connect is done.  But it has to be written
  14004. into the application.
  14005.  
  14006. "Tinkerability" is one more step...where the user can modify the as-shipped
  14007. actions of UI elements.
  14008.  
  14009.    --John
  14010.  
  14011. --
  14012. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  14013. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  14014. =========================================================================
  14015. Date:         Mon, 30 May 1994 18:58:36 -0500
  14016. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14017. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14018. From:         "William M. Porter" <WMPORTER@JETSON.UH.EDU>
  14019. Subject:      Re: Running Applescript from w/i FileMaker Pro
  14020.  
  14021. Open your script from within the Script Editor and resave it with the
  14022. "Save As" command. When you do, click on the "Never show startup screen"
  14023. check box.
  14024.  
  14025. The running of the script will not be 100% transparent, because the open
  14026. file event you have sent from within FileMaker will actually open the
  14027. script application and the user will observe this happening, that is, he
  14028. will notice that he's switched out of FileMaker momentarily. But no
  14029. startup (a.k.a. "splash") screen will appear and as soon as the script
  14030. starts running, the user will be switched back into FileMaker.
  14031.  
  14032. Using Leonard Rosenthol's OSA Menu has the advantage of allowing the user
  14033. to run compiled (non-application) scripts, which is a bit speedier and
  14034. means that you skip the process of opening the script application.
  14035. However, your user will then have to invoke the script by pulling down in
  14036. the menu, which I gather you would like to avoid.
  14037.  
  14038. I might mention also that I have had some trouble getting OSA MEnu to
  14039. work on my LC III and on my PowerBook 165. I'm prepared to discover that
  14040. the problem lies in my machines rather than with the work of Mr.
  14041. Rosenthol, who is a well known Mac-programming ace. But I haven't solved
  14042. the problem yet....
  14043.  
  14044. There is yet another alternative: use QuicKeys to run the script....
  14045.  
  14046. Will Porter / University of Houston
  14047. wmporter@jetson.uh.edu
  14048. =========================================================================
  14049. Date:         Tue, 31 May 1994 08:42:47 -0400
  14050. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14051. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14052. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  14053. Subject:      Re: AppleScript support levels...
  14054. In-Reply-To:  <no.id> from "John W. Baxter" at May 30, 94 12:51:10 pm
  14055.  
  14056. --John W. Baxter wrote:
  14057. >
  14058. >What you want is "attachability".  FileMaker came out long before that was
  14059. >possible (in other than very pre-release form, if that), so it's not
  14060. >surprising that FileMaker doesn't have it.
  14061.  
  14062.     Hopefully, this is something that Claris is working on. Anyone have
  14063. any idea if FM Pro Server is going to have better AppleScript support
  14064. than FM Pro 2.0v2?
  14065.  
  14066. >The technology is (now) available to trigger AppleScript (or Frontier,
  14067. >or ...) scripts when a button is pressed, a word of text is
  14068. >double-clicked, or pretty much any UI action the application wants to
  14069. >connect is done.  But it has to be written into the application.
  14070.  
  14071.     And if Apple's Guide to Scriptable Applications is to be believed,
  14072. there aren't a whole lot of attachable apps in the works. There are
  14073. quite a good deal of scriptable and recordable apps, though.
  14074.  
  14075. >"Tinkerability" is one more step...where the user can modify the as-shipped
  14076. >actions of UI elements.
  14077.  
  14078.     Hopefully, InfoDepot 2.0 will be out very shortly and we can all
  14079. find out just how cool tinkerability really is. InfoDepot being the only
  14080. tinkerable app I've heard of. Any more that anyone knows about?
  14081.  
  14082. -Hades
  14083. =========================================================================
  14084. Date:         Tue, 31 May 1994 09:08:45 -0500
  14085. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14086. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14087. From:         Fred Terry <pfterry@LKS.CSI.COM>
  14088. Subject:      Re: Upload
  14089. In-Reply-To:  Your message of "Fri, 27 May 94 21:15:00 GMT"
  14090.  
  14091. >For the fun of it, I sent a little script for SITComm and FirstClass to
  14092. >gaea:/incoming.  I presume it won't be there long, and will end up in
  14093. >/applescript/scripts. (Right Fred?)
  14094.  
  14095. Right, Jay. And there are several other scripts that I found queued in the
  14096. incoming directory. They can be found in
  14097.  
  14098. ftp://gaea.kgs.ukans.edu/applescript/scripts/Move_items_2_folder
  14099. ftp://gaea.kgs.ukans.edu/applescript/scripts/edit_file_info_plus_droplet.hqx
  14100. ftp://gaea.kgs.ukans.edu/applescript/scripts/edit_file_version_droplet.hqx
  14101. ftp://gaea.kgs.ukans.edu/applescript/scripts/freeze_dates_droplet.hqx
  14102. ftp://gaea.kgs.ukans.edu/applescript/scripts/res_res_droplet.hqx
  14103. ftp://gaea.kgs.ukans.edu/applescript/scripts/text_bbedit_droplet.hqx
  14104.  
  14105. As well as the lastest version of Gregory Quinn's osaxen
  14106.  
  14107. ftp://gaea.kgs.ukans.edu/applescript/osaxen/gtqscriptlib1.2.sit.hqx
  14108.  
  14109. Enjoy.
  14110.  
  14111. pf
  14112.  
  14113.  
  14114. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  14115. Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
  14116. =========================================================================
  14117. Date:         Tue, 31 May 1994 08:06:07 -0700
  14118. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14119. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14120. From:         "Erik C. Thauvin" <ravensys@ESKIMO.COM>
  14121. Subject:      Re: Upload
  14122. In-Reply-To:  <199405311411.AA29060@eskimo.com>
  14123.  
  14124. I uploaded the following Frontier droplets:
  14125.  
  14126. ftp://gaea.kgs.ukans.edu/applescript/scripts/edit_file_info_plus_droplet.hqx
  14127. ftp://gaea.kgs.ukans.edu/applescript/scripts/edit_file_version_droplet.hqx
  14128. ftp://gaea.kgs.ukans.edu/applescript/scripts/freeze_dates_droplet.hqx
  14129. ftp://gaea.kgs.ukans.edu/applescript/scripts/res_res_droplet.hqx
  14130. ftp://gaea.kgs.ukans.edu/applescript/scripts/text_bbedit_droplet.hqx
  14131.  
  14132. They can also be found in "ftp://eskimo.com/ravensys/frontier/" and short
  14133. descriptions of what they actually do are available from the URL listed at
  14134. the bottom of my signature.
  14135.  
  14136. E.
  14137.  
  14138. --
  14139. Erik C. Thauvin      | Custom Software Solutions |   Raven Systems Limited
  14140. ravensys@eskimo.com  | For Everyday Problems.    |         P.O. Box 560894
  14141. +1 (206) 747-9819    |                           |  Orlando, FL 32856, USA
  14142.             URL= file://eskimo.com/ravensys/www/raven.html
  14143.  
  14144.  
  14145. On Tue, 31 May 1994, Fred Terry wrote:
  14146.  
  14147. > >For the fun of it, I sent a little script for SITComm and FirstClass to
  14148. > >gaea:/incoming.  I presume it won't be there long, and will end up in
  14149. > >/applescript/scripts. (Right Fred?)
  14150. >
  14151. > Right, Jay. And there are several other scripts that I found queued in the
  14152. > incoming directory. They can be found in
  14153. >
  14154. > ftp://gaea.kgs.ukans.edu/applescript/scripts/Move_items_2_folder
  14155. > ftp://gaea.kgs.ukans.edu/applescript/scripts/edit_file_info_plus_droplet.hqx
  14156. > ftp://gaea.kgs.ukans.edu/applescript/scripts/edit_file_version_droplet.hqx
  14157. > ftp://gaea.kgs.ukans.edu/applescript/scripts/freeze_dates_droplet.hqx
  14158. > ftp://gaea.kgs.ukans.edu/applescript/scripts/res_res_droplet.hqx
  14159. > ftp://gaea.kgs.ukans.edu/applescript/scripts/text_bbedit_droplet.hqx
  14160. >
  14161. > As well as the lastest version of Gregory Quinn's osaxen
  14162. >
  14163. > ftp://gaea.kgs.ukans.edu/applescript/osaxen/gtqscriptlib1.2.sit.hqx
  14164. >
  14165. > Enjoy.
  14166. >
  14167. > pf
  14168. >
  14169. >
  14170. > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  14171. > Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
  14172. >
  14173. =========================================================================
  14174. Date:         Tue, 31 May 1994 10:08:11 -0500
  14175. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14176. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14177. From:         Fred Terry <pfterry@LKS.CSI.COM>
  14178. Subject:      Apprentice: CD-ROM
  14179.  
  14180. Folks,
  14181.  
  14182. This isn't quite scripting information, but I thought I'd pass it along since
  14183. some of you might find it useful. It includes the early MacScritping digests.
  14184. :-)
  14185.  
  14186. pf
  14187.  
  14188.  
  14189. For Immediate Release
  14190.  
  14191. Contact: Christine Convy
  14192. Celestin Company
  14193. 1152 Hastings Avenue
  14194. Port Townsend, WA  98368
  14195. Phone: 800 835 5514 or 206 385 3767
  14196. Fax: 206 385 3586
  14197.  
  14198. APPRENTICE: CD-ROM OF OVER 450 MEGABYTES OF MAC SOURCE CODE AND UTILITIES
  14199. FOR ONLY $35
  14200.  
  14201. Port Townsend, Washington -- May 26, 1994 -- Celestin Company releases
  14202. Apprentice, an attractively priced CD-ROM compilation of Mac source code
  14203. and utilities. Many Macintosh programmers have been frustrated by the lack
  14204. of an inexpensive collection of sample source code. The few collections
  14205. that are available are not only out of the price range of many people, but
  14206. contain outdated examples that may no longer demonstrate effective
  14207. programming techniques. Apprentice contains over 450 megabytes of
  14208. up-to-date source code, as well as quality programming utilities to assist
  14209. novice as well as experienced developers.
  14210.  
  14211. In order to compile such an exhaustive collection of quality source code,
  14212. Celestin Company contacted over 200 Macintosh developers and received their
  14213. permission to include some of the best programming examples available.
  14214. Users will find complete working examples of applications, games, control
  14215. panels, extensions, utilities, and much more. Most of the source code is in
  14216. C, C++, and Pascal.
  14217.  
  14218. PROGRAMMING THE EASY WAY
  14219.  
  14220. Those new to Mac programming, will find the included "shell" programs very
  14221. useful. These are complete application frameworks that take care of many of
  14222. the tedious tasks associated with Mac programming, including menus,
  14223. standard dialogs, file handling, and the like. A complete Mac application
  14224. can be built in no time, by simply providing the code to perform specific
  14225. activities. All other aspects of the Macintosh environment are handled by
  14226. the shell utilities.
  14227.  
  14228. Apprentice contains dozens of libraries, routines designed around a
  14229. specific task, from graphics and sounds to menu management and serial
  14230. communications. Many of these libraries include complete source code. Also
  14231. included are hundreds of code "snippets", small routines that perform
  14232. specific programming tasks. From displaying a color icon or resolving a
  14233. file name alias, developers will find what they are looking for in this
  14234. definitive collection.
  14235.  
  14236. GOOD NEWS FOR MPW USERS
  14237.  
  14238. MPW users will find dozens of new and interesting tools, languages, and
  14239. utilities, many with complete source code. And developers looking to learn
  14240. a new language, or just dabble, will find more than 20 complete standalone
  14241. programming environments. Ada, C, Forth, Lisp, Modula-2, Oberon, and Prolog
  14242. are only a few of the languages included. Most come with complete
  14243. documentation and programming examples, and some include complete source
  14244. code to the language itself.
  14245.  
  14246. INFORMATION, INFORMATION, INFORMATION
  14247.  
  14248. The information hungry will find technical specifications, language
  14249. guidelines, programming hints, as well as a complete collection of the
  14250. comp.sys.mac.programmer digest, a compendium of information from one of the
  14251. best Mac programmer discussion groups on the electronic networks. Also
  14252. included are demonstration versions of commercial programmer utilities,
  14253. including installers, code and resource editors, database libraries, and
  14254. much more.
  14255.  
  14256. Everything on the disc is indexed using several different utilities, so
  14257. users will find what they are looking for quickly and easily.
  14258.  
  14259. Apprentice is $35, which includes standard shipping within the United
  14260. States and Canada. It comes with an unconditional 30-day money-back
  14261. guarantee, and customers who for any reason are dissatisfied with their
  14262. purchase, are entitled to an immediate refund.
  14263.  
  14264. -- END --
  14265.  
  14266. For more information about Celestin Company and its products, call 206 385
  14267. 3767, fax 206 385 3586, or email celestin@pt.olympus.net. Apprentice is a
  14268. trademark of Celestin Company. All other product names are trademarks or
  14269. registered trademarks of their respective companies.
  14270.  
  14271. [for best results, print or view this order form using a monospaced font,
  14272. such as Courier]
  14273. ------------------------------ cut here ------------------------------
  14274.  
  14275. Dear Celestin Company,
  14276.  
  14277. YES, I would like to order Apprentice, The Definitive Collection of Source
  14278. Code and Utilities for Mac Programmers.
  14279.  
  14280. Please send me ______ copies at $35 each. I understand that this includes
  14281. standard shipping within the United States and Canada. Sales tax is also
  14282. included for orders within the state of Washington. Add $5 per order
  14283. (regardless of quantity) for shipping outside the United States and Canada.
  14284.  
  14285.  
  14286.      Name __________________________________________________________
  14287.  
  14288.      Company _______________________________________________________
  14289.  
  14290.      Address _______________________________________________________
  14291.  
  14292.      City, State, Zip ______________________________________________
  14293.  
  14294.      Country _______________________________________________________
  14295.  
  14296.      Telephone _____________________________________________________
  14297.  
  14298.      Email address and service _____________________________________
  14299.  
  14300.      VISA/MC Number ________________________________________________
  14301.  
  14302.      Expiration Date _______________________________________________
  14303.  
  14304.      Name on Card __________________________________________________
  14305.  
  14306.  
  14307. Note: If you are paying by check, please make it payable to Celestin
  14308. Company. We can only accept checks and money orders drawn on U.S. funds
  14309. from a U.S. bank. Please allow up to ten days for delivery inside the U.S.
  14310. and Canada. Delivery to other locations may take longer.
  14311.  
  14312. You may call to place your order at 800 835 5514 or 206 385 3767. You may
  14313. fax your order to 206 385 3586. Or, you may email your order on the
  14314. Internet to celestin@pt.olympus.net.
  14315.  
  14316. Celestin Company, 1152 Hastings Avenue, Port Townsend, WA  98368, United
  14317. States of America.
  14318.  
  14319. --
  14320. celestin@pt.olympus.net              (Paul Celestin, Celestin Company)
  14321. Home of Apprentice - the Mac Programmer Source Code & Utilities CD-ROM
  14322. Check out my URL:   file://speedway.net/pub/celestin/www/Celestin.html
  14323.  
  14324.  
  14325.  
  14326.  
  14327.  
  14328. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  14329. Fred Terry  Cadence Design Systems  pfterry@lks.csi.com  +1 913 841 1283
  14330. =========================================================================
  14331. Date:         Tue, 31 May 1994 10:14:16 -0500
  14332. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14333. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14334. From:         Fred Terry <pfterry@LKS.CSI.COM>
  14335. Subject:      Re: Upload
  14336. In-Reply-To:  Your message of "Tue, 31 May 94 08:06:07 PDT"
  14337.  
  14338. >I uploaded the following Frontier droplets:
  14339. >
  14340. >ftp://gaea.kgs.ukans.edu/applescript/scripts/edit_file_info_plus_droplet.hqx
  14341. >ftp://gaea.kgs.ukans.edu/applescript/scripts/edit_file_version_droplet.hqx
  14342. >ftp://gaea.kgs.ukans.edu/applescript/scripts/freeze_dates_droplet.hqx
  14343. >ftp://gaea.kgs.ukans.edu/applescript/scripts/res_res_droplet.hqx
  14344. >ftp://gaea.kgs.ukans.edu/applescript/scripts/text_bbedit_droplet.hqx
  14345.  
  14346. Ooooops. That's what I get for moving the files without downloading and
  14347. checking them out first. These will be moved to
  14348.  
  14349. ftp://gaea.kgs.ukans.edu/frontier/droplets/
  14350.  
  14351. Sorry bout that.
  14352.  
  14353. pf
  14354. =========================================================================
  14355. Date:         Tue, 31 May 1994 13:18:36 -0500
  14356. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14357. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14358. From:         Herb Schilling <hschilling@LERC.NASA.GOV>
  14359. Subject:      What is firstLaunch ?
  14360.  
  14361. Hello,
  14362.  
  14363.  I was trying to create a handler called "FirstLaunch". AppleScript
  14364. insisted on writing it as firstLaunch so I assume AppleScript is already
  14365. aware of it as a handler or variable. ( I s this correct ? ) .
  14366.  
  14367. I can't find any documentation of this variable or handler and when I try
  14368. using it in a script as either a variable or handler ( firstLaunch() ),
  14369. AppleScript says it does not know anything about it.
  14370.  
  14371.  I can work around my problem, of course, but it would be nice to know what
  14372. is going on. Thanks !
  14373.  
  14374. --
  14375. Herb Schilling NASA Lewis Research Center 21000 Brookpark Road Mail Stop 142-4
  14376. Cleveland Ohio 44135 (216) 433-8955 Fax:(216)433-8000 
  14377. sshws@convx1.lerc.nasa.gov
  14378. AppleLink: SCHILLING.H
  14379. =========================================================================
  14380. Date:         Tue, 31 May 1994 13:26:28 -0400
  14381. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14382. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14383. From:         "George R. Brown" <gbrown@PARTECH.COM>
  14384. Subject:      Keyboard modifiers for droplets
  14385.  
  14386. Is there a way to tell if the shift, option, control, or combination keys
  14387. were pressed within a drag-and-drop script application.  I want to modify
  14388. the behavior of a script slightly if the modifiers are down (i.e. prompt vs
  14389. no prompt for additional info).
  14390.  
  14391.  - gb (george@partech.com)
  14392. =========================================================================
  14393. Date:         Tue, 31 May 1994 10:34:51 -0700
  14394. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14395. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14396. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  14397. Subject:      Re: What is firstLaunch ?
  14398.  
  14399. >Hello,
  14400. >
  14401. > I was trying to create a handler called "FirstLaunch". AppleScript
  14402. >insisted on writing it as firstLaunch so I assume AppleScript is already
  14403. >aware of it as a handler or variable. ( I s this correct ? ) .
  14404. >
  14405. >I can't find any documentation of this variable or handler and when I try
  14406. >using it in a script as either a variable or handler ( firstLaunch() ),
  14407. >AppleScript says it does not know anything about it.
  14408.  
  14409. Hmmm...
  14410. With a freshly-started Script Editor, I get the expected results with
  14411.  
  14412. ----------------------
  14413. on firstlaunch()
  14414.         display dialog "looks ok here"
  14415. end firstlaunch
  14416.  
  14417. firstlaunch()
  14418. ----------------------
  14419.  
  14420. in the untitled script window.  That is, it compiles fine (note that it
  14421. left the "l" lower case), and does the display dialog when executed.
  14422.  
  14423. Something about the context in which you are working defines firstLaunch.
  14424. Is that context FrontMost/FaceSpan by any chance?
  14425.  
  14426.    --John
  14427.  
  14428. --
  14429. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  14430. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  14431. =========================================================================
  14432. Date:         Tue, 31 May 1994 13:41:49 -0400
  14433. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14434. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14435. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  14436. Subject:      Re: Keyboard modifiers for droplets
  14437. In-Reply-To:  <no.id> from "George R. Brown" at May 31, 94 01:26:28 pm
  14438.  
  14439. --George R. Brown wrote:
  14440. >
  14441. >Is there a way to tell if the shift, option, control, or combination keys
  14442. >were pressed within a drag-and-drop script application.  I want to modify
  14443. >the behavior of a script slightly if the modifiers are down (i.e. prompt vs
  14444. >no prompt for additional info).
  14445.  
  14446.     I asked this question a week or so ago, and it never received a
  14447. response. I've tried using the (keys pressed) function from Jon's
  14448. Commands but all I get are beeps when I try to hold down keys...
  14449.  
  14450. -Hades
  14451. =========================================================================
  14452. Date:         Tue, 31 May 1994 14:07:13 -0400
  14453. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14454. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14455. From:         Paul Roma <shelbel@ENGIN.UMICH.EDU>
  14456. Subject:      Powertalk
  14457.  
  14458. Hello,
  14459.         I am attempting to script applemail so that it looks automatically for
  14460. incoming mail and replies with a standard message.  Is this possible, I
  14461. cannot find the apple event for powertalk to recognize that mail has arived.
  14462.  
  14463.         If you know of a way to do this or can possibly be of assistance, it 
  14464. wou
  14465. ld
  14466. be appreciated if you could contact me.
  14467.  
  14468. =========================================================================
  14469. Paul Roma                                            Phone: 313-747-0048
  14470. Computer Systems Consultant                            Fax: 313-747-0036
  14471. Office of Technology Transfer              Email: shelbel@engin.umich.edu
  14472. University of Michigan College of Engineering
  14473. 2901 Hubbard, A113
  14474. Ann Arbor, MI 48109-2016
  14475. =========================================================================
  14476. Date:         Tue, 31 May 1994 13:15:52 -0500
  14477. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14478. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14479. From:         Igor Livshits <igorl@UIUC.EDU>
  14480. Subject:      Re: Keyboard modifiers for droplets
  14481.  
  14482. At  1:41 PM 5/31/94 -0400, you wrote:
  14483. >--George R. Brown wrote:
  14484. >>
  14485. >>Is there a way to tell if the shift, option, control, or combination keys
  14486. >>were pressed within a drag-and-drop script application.  I want to modify
  14487. >>the behavior of a script slightly if the modifiers are down (i.e. prompt vs
  14488. >>no prompt for additional info).
  14489. >
  14490. >    I asked this question a week or so ago, and it never received a
  14491. >response. I've tried using the (keys pressed) function from Jon's
  14492. >Commands but all I get are beeps when I try to hold down keys...
  14493. >
  14494. >-Hades
  14495.  
  14496.  
  14497. Hmm, works fine with my script. Check out Trash old messages (on gaea and
  14498. Info-Mac).
  14499.  
  14500. Cheers, Igor
  14501.  
  14502. _____
  14503. NCSA-UIUC, e: igorl@uiuc.edu, w: (217) 244-0424;  Have a Coke and a smile :)
  14504. =========================================================================
  14505. Date:         Tue, 31 May 1994 11:37:30 -0800
  14506. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14507. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14508. From:         Kee Nethery +1 408 974 7889 <kee@KAGI.COM>
  14509. Subject:      Re: scripting Powertalk
  14510.  
  14511. >        I am attempting to script applemail so that it looks automatically for
  14512. >incoming mail and replies with a standard message.  Is this possible, I
  14513. >cannot find the apple event for powertalk to recognize that mail has arived.
  14514.  
  14515. I have tried Beyond's PowerRules and the QT something or other osax Library
  14516. that has some PowerTalk commands. After thrashing on PowerRules for a long
  14517. time, I have abandoned it for Eudora. I found that many of the PowerRules
  14518. sample scripts did not work on the later versions of PowerRules. Seemed
  14519. that as each new rev came out, fewer sample scripts would work. The GTQ or
  14520. whatever osax library has some PowerTalk osaxs that query catalogs and send
  14521. mail but he has never seen specs for reading AppleMail and thus he has not
  14522. written an osax to send AppleMail.
  14523.  
  14524. Unless someone else knows of some other alternatives, I suggest Eudora.
  14525.  
  14526. Kee Nethery
  14527. =========================================================================
  14528. Date:         Tue, 31 May 1994 14:56:43 -0500
  14529. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14530. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14531. From:         Herb Schilling <hschilling@LERC.NASA.GOV>
  14532. Subject:      Re: What is firstLaunch ?
  14533.  
  14534. >
  14535. >Hmmm...
  14536. >With a freshly-started Script Editor, I get the expected results with
  14537. >
  14538. >----------------------
  14539. >on firstlaunch()
  14540. >        display dialog "looks ok here"
  14541. >end firstlaunch
  14542. >
  14543. >firstlaunch()
  14544. >----------------------
  14545.  
  14546. I am just using the AppleScript Script Editor also. When I put your code
  14547. into a fresh window, and do a Check Syntax, it DOES uppercase the "l". I
  14548. guess I must have some Addition that you don't have. I poked around the
  14549. dictionaries of the ones I have to see if it is there, but can't find it. I
  14550. have so many, it would take a long time to check them all. Is there a quick
  14551. way  to create a list of all the handlers,etc... in your Additions folder ?
  14552.  
  14553.  
  14554. To see if it was something in my Additions folder, I took all of my
  14555. Scripting Additions out of my Scripting Additions Folder temporarily and
  14556. tried to check the syntax on your script ( but with the "L" uppercase ). I
  14557. got a "Could not compile the script because the file could not be found"
  14558. error.
  14559.  
  14560. >
  14561. >in the untitled script window.  That is, it compiles fine (note that it
  14562. >left the "l" lower case), and does the display dialog when executed.
  14563. >
  14564.  
  14565. --
  14566. Herb Schilling NASA Lewis Research Center 21000 Brookpark Road Mail Stop 142-4
  14567. Cleveland Ohio 44135 (216) 433-8955 Fax:(216)433-8000 
  14568. sshws@convx1.lerc.nasa.gov
  14569. AppleLink: SCHILLING.H
  14570. =========================================================================
  14571. Date:         Tue, 31 May 1994 15:11:16 -0400
  14572. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14573. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14574. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  14575. Subject:      Re: Keyboard modifiers for droplets
  14576. In-Reply-To:  <no.id> from "Igor Livshits" at May 31, 94 01:15:52 pm
  14577.  
  14578. --Igor Livshits wrote:
  14579. >
  14580. >--Brian V. Hughes wrote:
  14581. >>
  14582. >>    I asked this question a week or so ago, and it never received a
  14583. >>response. I've tried using the (keys pressed) function from Jon's
  14584. >>Commands but all I get are beeps when I try to hold down keys...
  14585. >
  14586. >Hmm, works fine with my script. Check out Trash old messages (on gaea and
  14587. >Info-Mac).
  14588.  
  14589.     Yes, it seems I spoke too soon. Pressing one of the modifier keys
  14590. works just fine. What I wanted was for someone to be able to hold down a
  14591. regular alphanumeric key. Apparantly (keys pressed) doesn't handle this.
  14592.  
  14593. -Hades
  14594. =========================================================================
  14595. Date:         Tue, 31 May 1994 15:26:17 -0400
  14596. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14597. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14598. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  14599. Subject:      Re: What is firstLaunch ?
  14600. In-Reply-To:  <no.id> from "Herb Schilling" at May 31, 94 02:56:43 pm
  14601.  
  14602. --Herb Schilling wrote:
  14603. >
  14604. >>on firstlaunch()
  14605. >>        display dialog "looks ok here"
  14606. >>end firstlaunch
  14607. >>
  14608. >>firstlaunch()
  14609. >
  14610. >I am just using the AppleScript Script Editor also. When I put your code
  14611. >into a fresh window, and do a Check Syntax, it DOES uppercase the "l". I
  14612. >guess I must have some Addition that you don't have. I poked around the
  14613. >dictionaries of the ones I have to see if it is there, but can't find it. I
  14614. >have so many, it would take a long time to check them all. Is there a quick
  14615. >way  to create a list of all the handlers,etc... in your Additions folder ?
  14616.  
  14617.     Hmm... you must have some strange stuff installed in your Scripting
  14618. Additions folder. The firstlaunch() handle above works just fine for me
  14619. as well, although I was running into a really strange problem similar to
  14620. this in Frontmost. I was trying to assign a variable from a loaded
  14621. script and I accidentally typed it as "theRUles" instead of "theRules"
  14622. which is how it appears in the loaded script. Now, no matter what I try
  14623. I can't seem to use a variable called "theRules" in the Frontmost
  14624. project. Everytime I compile the script I end up with "theRUles". I'm
  14625. hoping there is a solution to this problem because Frontmost gives me a
  14626. variable not found error when I try to get the value of "theRUles" from
  14627. the loaded script.
  14628.  
  14629. -Hades
  14630. =========================================================================
  14631. Date:         Tue, 31 May 1994 12:38:53 -0700
  14632. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14633. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14634. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  14635. Subject:      Re: What is firstLaunch ?
  14636.  
  14637. >>
  14638. >>Hmmm...
  14639. >>With a freshly-started Script Editor, I get the expected results with
  14640. >>
  14641. >>----------------------
  14642. >>on firstlaunch()
  14643. >>        display dialog "looks ok here"
  14644. >>end firstlaunch
  14645. >>
  14646. >>firstlaunch()
  14647. >>----------------------
  14648. >
  14649. >I am just using the AppleScript Script Editor also. When I put your code
  14650. >into a fresh window, and do a Check Syntax, it DOES uppercase the "l". I
  14651. >guess I must have some Addition that you don't have. I poked around the
  14652. >dictionaries of the ones I have to see if it is there, but can't find it. I
  14653. >have so many, it would take a long time to check them all. Is there a quick
  14654. >way  to create a list of all the handlers,etc... in your Additions folder ?
  14655.  
  14656. Herb...
  14657.    Here's a list of the files in my Scripting Additions folder at the
  14658. moment (select All in Finder, Copy, Paste into a text editor).  The list is
  14659. quite short...I try to keep only Apple's Additions and ones I'm actively
  14660. using, to reduce the sort of name pollution you are seeing.  This is a
  14661. problem that is only going to get worse with time.
  14662.  
  14663. app menu
  14664. Beep
  14665. Choose Application
  14666. Choose File
  14667. Current Date
  14668. Dialects
  14669. Display Dialog
  14670. =46ile Commands
  14671. Is Modern Memory
  14672. Jon=B9s Commands
  14673. Load Script
  14674. MacPPP Control
  14675. New File
  14676. Numerics
  14677. Run Script
  14678. Scripting Components
  14679. Store Script
  14680. String Commands
  14681. TickCount
  14682. Time to GMT
  14683.  
  14684. I should have mentioned before that AppleScript styled the firstlaunch as a
  14685. user (me) defined variable, handler, etc.  I could see that
  14686. clearly...unfortunately I didn't mention it.
  14687.  
  14688. >To see if it was something in my Additions folder, I took all of my
  14689. >Scripting Additions out of my Scripting Additions Folder temporarily and
  14690. >tried to check the syntax on your script ( but with the "L" uppercase ). I
  14691. >got a "Could not compile the script because the file could not be found"
  14692. >error.
  14693.  
  14694. To make experiments like that meaningful, you at least need to quit the
  14695. Script Editor and restart it after taking things out of Scripting Additions
  14696. (Script Editor has a long memory).  Restarting the Mac is better, since the
  14697. event handlers for the additions remain installed when you drag them out of
  14698. the folder.
  14699.  
  14700.    --John
  14701.  
  14702. --
  14703. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  14704. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  14705. =========================================================================
  14706. Date:         Tue, 31 May 1994 12:44:19 -0700
  14707. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14708. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14709. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  14710. Subject:      Re: Keyboard modifiers for droplets
  14711.  
  14712. Brian V. Hughes wrote:
  14713. >
  14714. >    Yes, it seems I spoke too soon. Pressing one of the modifier keys
  14715. >works just fine. What I wanted was for someone to be able to hold down a
  14716. >regular alphanumeric key. Apparantly (keys pressed) doesn't handle this.
  14717.  
  14718. Ah, but holding down one of the character-generating keys generates a
  14719. stream of autokey events which overflows somebody's event queue (whatever
  14720. context the applet runs in--presumably its own, although that issue is lots
  14721. cloudier than it was 10 years ago).  That's not likely to be a productive
  14722. exercise.  [It might get one or two events into Finder's queue before the
  14723. switch, too.]
  14724.  
  14725.    --John
  14726.  
  14727. --
  14728. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  14729. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  14730. =========================================================================
  14731. Date:         Tue, 31 May 1994 16:03:38 -0400
  14732. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14733. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14734. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  14735. Subject:      Re: Keyboard modifiers for droplets
  14736. In-Reply-To:  <no.id> from "John W. Baxter" at May 31, 94 12:44:19 pm
  14737.  
  14738. --John W. Baxter wrote:
  14739. >
  14740. >Brian V. Hughes wrote:
  14741. >>
  14742. >>    Yes, it seems I spoke too soon. Pressing one of the modifier keys
  14743. >>works just fine. What I wanted was for someone to be able to hold down a
  14744. >>regular alphanumeric key. Apparantly (keys pressed) doesn't handle this.
  14745. >
  14746. >Ah, but holding down one of the character-generating keys generates a
  14747. >stream of autokey events which overflows somebody's event queue (whatever
  14748. >context the applet runs in--presumably its own, although that issue is lots
  14749. >cloudier than it was 10 years ago).
  14750.  
  14751.     Pardon me while I go over into the corner and pretend not the feel
  14752. like the idiot I am. ;-> It's really amazing how the simplest things
  14753. just slip your mind, like auto-repeating keyboards.
  14754.  
  14755. >That's not likely to be a productive exercise.  [It might get one or two
  14756. >events into Finder's queue before the switch, too.]
  14757.  
  14758.     Yeah, you're right. I guess I'll have to find another way to handle
  14759. this...
  14760.  
  14761. -Hades
  14762. =========================================================================
  14763. Date:         Tue, 31 May 1994 17:23:50 EDT
  14764. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14765. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14766. From:         Shaddar@AOL.COM
  14767. Subject:      "Loggin As" from GTQLib 1.2
  14768.  
  14769. In the docs from GTQ scripting library v1.2 it says not to nest loggin as
  14770. commands.  Is there any way to have a script log on to more than one server
  14771. at a time.  I am writing a script which will let the user enter a password
  14772. once and log on to all the servers in the network (administrative tasks)
  14773. instead of each one individually.
  14774.  
  14775. Thanks  ;)
  14776.  
  14777. ~Josh~
  14778. =========================================================================
  14779. Date:         Tue, 31 May 1994 17:23:45 EDT
  14780. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14781. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14782. From:         Shaddar@AOL.COM
  14783. Subject:      Invisible files
  14784.  
  14785. Is there any way to tell if a file is visible or invisible, and to alter this
  14786. condition?  (ie, make all invisible files in a folder visible, or make a
  14787. droplet which makes the file invisible)
  14788.  
  14789. Thanks
  14790.  
  14791. ~Josh~
  14792. =========================================================================
  14793. Date:         Tue, 31 May 1994 16:49:44 -0600
  14794. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14795. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14796. From:         Tom Donovan <donovan@COVIS.NWU.EDU>
  14797. Subject:      Re: Eudora AS questions
  14798.  
  14799. This is a fairly old thread, but I don't remember seeing answers to a few
  14800. of Kee's questions:
  14801.  
  14802.  
  14803. Kee Nethery writes:
  14804.  
  14805.  
  14806. >1. The following AppleScript does not work, any idea what AppleScript is used
  14807. >to delete a message in the In Box that has not been marked as read?
  14808. >
  14809. >----------
  14810. >property defaults : ""
  14811. >property inBox : "In"
  14812. >property i : {1}
  14813. >
  14814. >delete message i of mailbox inBox of mail folder defaults
  14815. >----------
  14816. >
  14817. >
  14818.  
  14819. I seem to remember needing to "move" a given message to the "Trash"--I
  14820. forget the syntax, though.
  14821.  
  14822.  
  14823.  
  14824. >2. The following AppleScripts do not return the internet address of the person
  14825. >who sent the message. Field "From:" returns the entire contents of the from
  14826. >field and that does work as a return address but it includes all the extra
  14827. >text identifying the sender such as for me, my name and phone number.
  14828. >Sender returns only the stuff in the From field that I do not want. What I
  14829. >desire is the stuff in the From field that is not what you return as
  14830. >Sender. What would be the proper form for acquiring just the domain style
  14831. >return address of the sender?
  14832. >
  14833. >----------
  14834. >set x to field "From:" of message i of mailbox inBox of mail folder defaults
  14835. >set x to Sender of message i of mailbox inBox of mail folder defaults
  14836. >----------
  14837. >
  14838. >
  14839.  
  14840. I have been playing with the Regular Expressions osax from Script Tools and
  14841. the following lines seem to work at pulling just the Internet address
  14842. portion from the header line:
  14843.  
  14844.    set expr to compile regular expression "[^ \\(\\<]*@[-a-zA-Z0-9\\.]+"
  14845.    match regular expression expr to msgFrom
  14846.  
  14847. ("msgFrom" is the text of the header field; This snippet just returns the
  14848. e-mail address as the result--you'll probably want to assign it to a
  14849. variable.>
  14850.  
  14851.  
  14852. <<Clip...>>
  14853.  
  14854. >
  14855. >Thanks all, this mailing list is a very big help.
  14856. >
  14857. >Kee Nethery
  14858. >
  14859. >
  14860. >_________________________________________________________________
  14861. >Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  14862.  
  14863.  
  14864. Hope this helps.
  14865.  
  14866. -Tom
  14867.  
  14868. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  14869. Tom Donovan           "The city is a place where a small boy, as he walks
  14870. System Administrator   through it, may see something that will tell him what
  14871. CoVis Project          he wants to do his whole life."
  14872. Northwestern Univ.
  14873.                                                     --Louis I. Kahn
  14874. E-mail: donovan@covis.nwu.edu
  14875. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  14876. =========================================================================
  14877. Date:         Tue, 31 May 1994 14:46:55 -0700
  14878. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14879. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14880. From:         Joe Lopez <lopezjf@SCE.COM>
  14881. Subject:      Recieving notification from Eudora
  14882.  
  14883. I am fairly new to applescript but have been learning alot by just joining
  14884. this list. I figured out how to get Eudora 1.4.2 to notify an application
  14885. when it received mail but how does an applescript app receive this
  14886. notification?
  14887.  
  14888. i.e.
  14889.  
  14890. on what
  14891.         -- handle the received mail
  14892. end what
  14893.  
  14894. what is the code that catches the notification sent to it?
  14895.  
  14896. --
  14897. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  14898.       _/  _/   _/                    _/_/_/_/ _/_/_/_/    _/  _/  _/
  14899.      _/  _/   _/                   _/                    _/  _/  _/
  14900.     _/  _/   _/          _/_/_/_/ _/        _/_/_/_/    _/  _/  _/
  14901.    _/  _/   _/          _/       _/                    _/  _/  _/
  14902.   _/  _/   _/          _/       _/_/_/_/  _/_/_/_/    _/  _/  _/
  14903.  _/  _/   _/          _/                             _/  _/  _/
  14904. _/  _/   _/    _/_/_/_/                             _/  _/  _/
  14905.  
  14906.    Joe Lopez         Southern California Edison    lopezjf@sce.com
  14907. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  14908. =========================================================================
  14909. Date:         Tue, 31 May 1994 15:44:13 -0800
  14910. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14911. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14912. From:         Kee Nethery +1 408 974 7889 <kee@KAGI.COM>
  14913. Subject:      Re: Eudora AS questions
  14914.  
  14915. Thank you, your info does help answer my questions.
  14916.  
  14917. Kee
  14918. =========================================================================
  14919. Date:         Tue, 31 May 1994 16:33:30 -0800
  14920. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14921. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14922. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  14923. Subject:      Re: scripting Powertalk
  14924.  
  14925. Would people be interested in a scriptable mailer for PowerTalk?  Something
  14926. akin to AppleMail but with FULL scriptability (ie. text/WP suite, mail
  14927. suite, etc.).  Would you be willing to pay for it?  If so, how much?
  14928.  
  14929. Feel free to either post a responce back to the list or EMail me directly...
  14930.  
  14931. Leonard
  14932. P.S. This is a non-Aladdin related question...
  14933. =========================================================================
  14934. Date:         Tue, 31 May 1994 16:52:55 -0800
  14935. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14936. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14937. From:         David Lewis <lewis@NETCOM.COM>
  14938. Subject:      Re: Invisible files
  14939.  
  14940. >Is there any way to tell if a file is visible or invisible, and to alter this
  14941. >condition?  (ie, make all invisible files in a folder visible, or make a
  14942. >droplet which makes the file invisible)
  14943.  
  14944. You didn't say to which scripting environment you had access. In Frontier,
  14945. the FinderFlags extension allows one to do what you wish.
  14946.         FinderFlag.get (filePath, 14)
  14947. will return true if the file is invisible, and FinderFlag.set or
  14948. FinderFlag.clear will allow you to manipulate it.
  14949.  
  14950.         David
  14951.  
  14952. David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  14953. =========================================================================
  14954. Date:         Tue, 31 May 1994 18:46:16 -0700
  14955. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14956. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14957. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  14958. Subject:      Re: Invisible files
  14959.  
  14960. David Lewis replies to a question:
  14961.  
  14962. >>Is there any way to tell if a file is visible or invisible, and to alter this
  14963. >>condition?  (ie, make all invisible files in a folder visible, or make a
  14964. >>droplet which makes the file invisible)
  14965. >
  14966. >You didn't say to which scripting environment you had access. In Frontier,
  14967. >the FinderFlags extension allows one to do what you wish.
  14968. >        FinderFlag.get (filePath, 14)
  14969. >will return true if the file is invisible, and FinderFlag.set or
  14970. >FinderFlag.clear will allow you to manipulate it.
  14971.  
  14972. Very true, David.  The older built-in verbs file.isVisible (path) and
  14973. file.setVisible (path, setting) are probably easier to use [and to read in
  14974. the scripts later], though.
  14975.  
  14976. There's probably a Scripting Addition around to do the job (if there isn't,
  14977. it would be trivial to write...probably also trivial to convert the
  14978. FinderFlags UCMD to a Scripting Addition, but I don't seem to have
  14979. FinderFlags installed, so I can't check).
  14980.  
  14981.    --John
  14982.  
  14983. --
  14984. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  14985. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  14986. =========================================================================
  14987. Date:         Tue, 31 May 1994 18:48:10 -0700
  14988. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14989. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14990. From:         Steve Michel <michel@NETCOM.COM>
  14991. Subject:      Re: Invisible files
  14992.  
  14993. >Is there any way to tell if a file is visible or invisible, and to alter this
  14994. >condition?  (ie, make all invisible files in a folder visible, or make a
  14995. >droplet which makes the file invisible)
  14996. >
  14997. >Thanks
  14998. >
  14999. >~Josh~
  15000.  
  15001. As David Lewis mentioned, Frontier can do it.
  15002.  
  15003. It's interesting. The File Commands scripting Addition lets you find out if
  15004. a file is invisible, but doesn't let you change it. The Scriptable Finder,
  15005. on the other hand, doesn't do _anyything_ with invisible files!
  15006.  
  15007.  
  15008. ================================================================
  15009. "In order to come up with something that rings true, you would
  15010. have to stay out of the way of that information machine that
  15011. everyone is plugged into. If you're plugged into the same
  15012. information machine, then there's no point to write, 'cause then
  15013. everyone knows the same thing."
  15014.                                  -- Bob Dylan
  15015. ================================================================
  15016. =========================================================================
  15017. Date:         Tue, 31 May 1994 20:53:35 CDT
  15018. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15019. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15020. From:         Tom Donovan <donovan@COVIS.NWU.EDU>
  15021. Subject:      Re: Recieving notification from Eudora
  15022.  
  15023. >I am fairly new to applescript but have been learning alot by just joining
  15024. >this list. I figured out how to get Eudora 1.4.2 to notify an application
  15025. >when it received mail but how does an applescript app receive this
  15026. >notification?
  15027. >
  15028. >i.e.
  15029. >
  15030. >on what
  15031. >        -- handle the received mail
  15032. >end what
  15033. >
  15034. >what is the code that catches the notification sent to it?
  15035. >
  15036. >--
  15037. >+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  15038. >      _/  _/   _/                    _/_/_/_/ _/_/_/_/    _/  _/  _/
  15039. >     _/  _/   _/                   _/                    _/  _/  _/
  15040. >    _/  _/   _/          _/_/_/_/ _/        _/_/_/_/    _/  _/  _/
  15041. >   _/  _/   _/          _/       _/                    _/  _/  _/
  15042. >  _/  _/   _/          _/       _/_/_/_/  _/_/_/_/    _/  _/  _/
  15043. > _/  _/   _/          _/                             _/  _/  _/
  15044. >_/  _/   _/    _/_/_/_/                             _/  _/  _/
  15045. >
  15046. >   Joe Lopez         Southern California Edison    lopezjf@sce.com
  15047. >+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  15048.  
  15049. Here it is:
  15050.  
  15051.    on =ABevent CSOmeNot=BB msgList
  15052.            --I forget what "msgList" contains--you can play with it
  15053.  
  15054.            --do useful stuff here
  15055.  
  15056.    end =ABevent CSOmeNot=BB
  15057.  
  15058.  
  15059.  
  15060. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  15061. Tom Donovan           "The city is a place where a small boy, as he walks
  15062. Support Specialist     through it, may see something that will tell him what
  15063. CoVis Project          he wants to do his whole life."
  15064. Northwestern Univ.
  15065.                                                     --Louis I. Kahn
  15066. E-mail: donovan@covis.nwu.edu
  15067. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  15068. =========================================================================
  15069. Date:         Tue, 31 May 1994 23:12:57 -0500
  15070. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15071. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15072. From:         "James E. Mitchell" <mitchell@CBIS.ECE.DREXEL.EDU>
  15073. Subject:      Working Current Record in FileMaker
  15074.  
  15075. Another Neophyte question. How do I get FilemakerPro to work with the
  15076. "current record" - i.e. the one that is selected by FMP to be active? If I
  15077. have more than one showing FMP selects the first record, not the current
  15078. one. I've tried a large variety of "current record" formats in a statement,
  15079. but keeping getting errors? It looks as though "current record" ought to be
  15080. possible since it is a property of the database.
  15081.  
  15082.  
  15083. ************************************************************************
  15084. *                      James E. Mitchell                               *
  15085. *   Associate Dean for Undergraduate Affairs * College of Engineering  *
  15086. *   Curtis-261, Drexel University * Philadelphia PA, 19104             *
  15087. *                  (215) 895-1374 * Fax (215) 895-5863                 *
  15088. *                  James.Mitchell@CoE.drexel.edu                       *
  15089. ************************************************************************
  15090.  
  15091.  
  15092.  
  15093.  
  15094.